Issue with Prisma Optimize: UI Waiting for Queries
Code Setup
Observed Behavior
When starting the server, the following message is logged:
However, the Optimize UI shows “waiting for queries,” and queries do not appear on the dashboard.
We are not using NestJS, as suggested in similar issues.
Versions
- @prisma/client: v5.22.0
- @prisma/extension-optimize: v1.1.4
- Node.js: v22.12.0
Debugging Steps Taken
1. Validated API Key: Logged
2. Checked Prisma Logs: Here are the logs from the libraryEngine:
Questions
- Are there additional configurations or prerequisites we might be missing for withOptimize?
- Could the issue stem from compatibility between @prisma/client and @prisma/extension-optimize versions?
- Are there any known issues with Node.js v22.12.0 affecting @prisma/extension-optimize?
Any insights or suggestions are appreciated!
Observed Behavior
When starting the server, the following message is logged:
However, the Optimize UI shows “waiting for queries,” and queries do not appear on the dashboard.
We are not using NestJS, as suggested in similar issues.
Versions
- @prisma/client: v5.22.0
- @prisma/extension-optimize: v1.1.4
- Node.js: v22.12.0
Debugging Steps Taken
1. Validated API Key: Logged
PRISMA_OPTIMIZE_API_KEY to ensure it’s correct.2. Checked Prisma Logs: Here are the logs from the libraryEngine:
Questions
- Are there additional configurations or prerequisites we might be missing for withOptimize?
- Could the issue stem from compatibility between @prisma/client and @prisma/extension-optimize versions?
- Are there any known issues with Node.js v22.12.0 affecting @prisma/extension-optimize?
Any insights or suggestions are appreciated!
