P
Prisma•2mo ago
Daniel

Cannot set up optimize

👋 I'm seeing the following error when trying to run withOptimize.
[optimize] HTTP 401 Unauthorized:
TypeError: Body is unusable
at specConsumeBody (node:internal/deps/undici/undici:5549:15)
at _Response.text (node:internal/deps/undici/undici:5448:18)
at E2 (/Users/daniel/Workspace/my-app/build/server.js:122344:63)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[optimize] HTTP 401 Unauthorized:
TypeError: Body is unusable
at specConsumeBody (node:internal/deps/undici/undici:5549:15)
at _Response.text (node:internal/deps/undici/undici:5448:18)
at E2 (/Users/daniel/Workspace/my-app/build/server.js:122344:63)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
I followed all of the steps from the docs , including creating and saving the API key. Are there any gotchas not covered in the documentation or ways to verify that my API key is valid?
Getting started with Prisma Optimize | Prisma Documentation
Learn how to quickly set up and start using Prisma Optimize.
2 Replies
Nurul
Nurul•2mo ago
Hey @Daniel 👋 Hmm that seems weird. Can you share the link to your repository if it's open source?
Daniel
DanielOP•2mo ago
sorry, it's not open source... I was able to resolve the issue eventually after a couple of API key refreshes :shrug:
Want results from more Discord servers?
Add your server