update routing for v2 api#33
Conversation
writersblockchain
commented
May 14, 2026
- Fix doubled /prove/prove URL by treating WEB_PROVER_API_URL as a base URL only
- Replace VLAYER_API_GATEWAY_KEY with WEB_PROVER_API_SECRET for API key auth across prove, verify, and compress routes
- Add 155s timeout to /prove fetch to prevent indefinite hangs during ZK proof generation
- Add detailed request/response logging to /api/prove for easier debugging
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis PR migrates the application's prover API authentication from Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@app/api/prove/route.ts`:
- Around line 109-111: The current error throw inside the response.ok check
leaks the full upstream responseText to clients; instead, log or record the full
responseText and any relevant details locally (e.g., via your logger or
console.error) and throw a sanitized error that only includes safe info such as
the HTTP status and a generic message. Update the block that checks response.ok
(the response/responseText handling) to stop embedding responseText in the
thrown Error, log the full payload internally, and rethrow a generic error like
"Upstream service error" with the status for client-facing output.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 4daa82d4-ad50-4569-a8e8-d5cca828bbe6
📒 Files selected for processing (4)
app/api/compress/route.tsapp/api/prove/route.tsapp/api/verify/route.tsnext-env.d.ts
|
E2E tests are failing. @writersblockchain if you believe they shouldn't fail or if you need help with that, let me know :) |
They are passing locally. It is because of v2 api url that they are failing. Should we update to |
|
@writersblockchain Yes, let's try it on production. |