David Alonso
David Alonso6mo ago

`npx convex dev` hanging

Why does having this inside an action file cause npx convex dev to hang on "Analyzing and deploying source code..."
"use node"

configureGenkit({
plugins: [
openAI({ apiKey: process.env.OPENAI_API_KEY }),
googleAI({ apiKey: process.env.GOOGLE_GENERATIVE_AI_API_KEY }),

],
flowStateStore: "firebase",
traceStore: "firebase",
logLevel: "debug",
enableTracingAndMetrics: true,
});
"use node"

configureGenkit({
plugins: [
openAI({ apiKey: process.env.OPENAI_API_KEY }),
googleAI({ apiKey: process.env.GOOGLE_GENERATIVE_AI_API_KEY }),

],
flowStateStore: "firebase",
traceStore: "firebase",
logLevel: "debug",
enableTracingAndMetrics: true,
});
I would like to be able to see detailed logs of what is going on if possible?
No description
2 Replies
David Alonso
David AlonsoOP6mo ago
with the verbose flag i see this, but no idea what's happening in this final loading step. I get this after waiting for a while
✖ Error: Unable to push deployment config to https://sensible-salmon-524.convex.cloud
Error fetching POST https://sensible-salmon-524.convex.cloud/api/push_config 408 Request Timeout
Failed due to network error, retrying in 393.96ms...
✖ Error: Unable to push deployment config to https://sensible-salmon-524.convex.cloud
Error fetching POST https://sensible-salmon-524.convex.cloud/api/push_config 408 Request Timeout
Failed due to network error, retrying in 393.96ms...
ian
ian6mo ago
Can you put that code inside of a function that you call, vs. running it at import time? You can make it a singleton that's lazily loaded if you want to access it as a global

Did you find this page helpful?