kfiroo
kfiroo•3w ago

Debugging hanging build - "Analyzing source code..."

Hey all, I have a NextJS project with Convex. I am using the RAG and Agent components, other then that nothing special in my setup. Not quite sure why but when I run my dev command the process hands on "Analyzing source code..."
> convex dev

āœ” Provisioned a dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/marvelous-...-300

ā ¼ Analyzing source code...
> convex dev

āœ” Provisioned a dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/marvelous-...-300

ā ¼ Analyzing source code...
I have no idea why it hangs, probably an error somewhere. Is there a way to run the command with some "debug" or "verbose" flag? Any help would be appreciated šŸ™ Thanks
6 Replies
Convex Bot
Convex Bot•3w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
kfiroo
kfirooOP•3w ago
UPDATE: After some time I got this error:
āœ– Error: Unable to start push to https://marvelous-...-300.convex.cloud
āœ– Error fetching POST https://marvelous-...-300.convex.cloud/api/deploy2/start_push 408 Request Timeout
Failed due to network error, retrying in 675.69ms...
āœ– Error: Unable to start push to https://marvelous-...-300.convex.cloud
āœ– Error fetching POST https://marvelous-...-300.convex.cloud/api/deploy2/start_push 408 Request Timeout
Failed due to network error, retrying in 675.69ms...
UPDATE 2: Running convex codegen --debug hangs as well. It outputs what seems to be an empty implementation of the generated files and is stuck on "Analizing source code..."
kfiroo
kfirooOP•3w ago
It appears that the fetch("/api/deploy2/start_push") is hanging source
GitHub
convex-js/src/cli/lib/deploy2.ts at main Ā· get-convex/convex-js
TypeScript/JavaScript client library for Convex. Contribute to get-convex/convex-js development by creating an account on GitHub.
kfiroo
kfirooOP•3w ago
Running with CONVEX_VERBOSE=1 I see this error:
Clever Tagline
Clever Tagline•3w ago
Just spitballing a random thought... Any chance you might have a circular dependency reference in your Convex functions? I would think that the devs would have designed a way to detect this and alert users, but maybe not.
kfiroo
kfirooOP•2w ago
Hey @Clever Tagline thanks! Yeah thats what I thought too.. but can't find any - of course I could have missed it. The issue was resolved after I moved some code around so I assume it was actually related to some circular dep thing I'm just not sure what.

Did you find this page helpful?