Oren
Oren•2mo ago

thanks for the release team, one problem

thanks for the release team, one problem I'm having seems to be not fixed with latest release: when I try to call a "node action" from a "httpAction" to upload an image, it fails with;
Error: Your request couldn't be completed. Try again later.] name: 'ConvexError [Symbol(ConvexError)]: true }
Error: Your request couldn't be completed. Try again later.] name: 'ConvexError [Symbol(ConvexError)]: true }
it used to work like a month ago, I'm on latest convex/dashboard/contex-js šŸ¤” when I place my action code directly in to httpAction it works so its not a blocker
14 Replies
nipunn
nipunn•2mo ago
Any information in your backend logs?
Oren
OrenOP•2mo ago
I see this error mroe in the file
2025-07-02T02:04:54.050337929Z /convex/data/tmp/.tmppogpzR/local.cjs:49505
2025-07-02T02:04:54.050352767Z if (this.get("env") !== "test") console.error(err.stack || err.toString());
2025-07-02T02:04:54.050358077Z ^
2025-07-02T02:04:54.050361704Z
2025-07-02T02:04:54.050364880Z Error
2025-07-02T02:04:54.050367805Z at logerror (bundledFunctions.js:49505:47)
2025-07-02T02:04:54.050371152Z at processImmediate (node:internal/timers:478:21)
2025-07-02T02:04:54.050374347Z at callbackTrampoline (node:internal/async_hooks:128:17)
2025-07-02T02:04:54.050377984Z
2025-07-02T02:04:54.050380970Z Node.js v18.20.6
2025-07-02T02:04:54.050337929Z /convex/data/tmp/.tmppogpzR/local.cjs:49505
2025-07-02T02:04:54.050352767Z if (this.get("env") !== "test") console.error(err.stack || err.toString());
2025-07-02T02:04:54.050358077Z ^
2025-07-02T02:04:54.050361704Z
2025-07-02T02:04:54.050364880Z Error
2025-07-02T02:04:54.050367805Z at logerror (bundledFunctions.js:49505:47)
2025-07-02T02:04:54.050371152Z at processImmediate (node:internal/timers:478:21)
2025-07-02T02:04:54.050374347Z at callbackTrampoline (node:internal/async_hooks:128:17)
2025-07-02T02:04:54.050377984Z
2025-07-02T02:04:54.050380970Z Node.js v18.20.6
nipunn
nipunn•2mo ago
Do you have a code snippet we can repro with? Regression is no good! I want to fix
Oren
OrenOP•2mo ago
thanks, will PM you the http and node actions now sent ā˜‘ļø also after this error occurs the local connection refuses to connect and push functionc changes with
āœ– Error: Unable to start push to https://[redacted].com
āœ– Error fetching POST https://[redacted].com/api/deploy2/start_push 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later.
Failed due to network error, retrying in 367.37ms...
āœ– Error: Unable to start push to https://[redacted].com
āœ– Error fetching POST https://[redacted].com/api/deploy2/start_push 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later.
Failed due to network error, retrying in 367.37ms...
backend logs
2025-07-02T02:16:00.776459262Z 2025-07-02T02:16:00.776186Z INFO convex-cloud-http: [] 172.18.0.14:36586 "GET /api/stream_function_logs?cursor=1751422557539.8665 HTTP/1.1" 200 "-" "node" application/json - 3039.246ms
2025-07-02T02:16:00.811243000Z 2025-07-02T02:16:00.811062Z ERROR isolate_worker_handle_request: common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): Node server request failed: error sending request for url (http://127.0.0.1:24725/invoke): client error (Connect): tcp connect error: Connection refused (os error 111): Connection refused (os error 111) instance_name="convex_self_hosted"
2025-07-02T02:16:00.776459262Z 2025-07-02T02:16:00.776186Z INFO convex-cloud-http: [] 172.18.0.14:36586 "GET /api/stream_function_logs?cursor=1751422557539.8665 HTTP/1.1" 200 "-" "node" application/json - 3039.246ms
2025-07-02T02:16:00.811243000Z 2025-07-02T02:16:00.811062Z ERROR isolate_worker_handle_request: common::errors: Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): Node server request failed: error sending request for url (http://127.0.0.1:24725/invoke): client error (Connect): tcp connect error: Connection refused (os error 111): Connection refused (os error 111) instance_name="convex_self_hosted"
restarting docker container solves the connection issue just tested it this works ok on convex cloud
stefano
stefano•2mo ago
I am getting the same error Yep, also the same behaviour I have also followed up in PM with code and data for repro Hey! Any updates on this?
nipunn
nipunn•2mo ago
Will be taking a look soon. Sorry for delay - it was a holiday weekend over in the states
stefano
stefano•2mo ago
welp that makes sense, dw
nipunn
nipunn•2mo ago
May be a few more days before I get to this - but it's on my list
stefano
stefano•2mo ago
hey sorry to bother - any updates?
nipunn
nipunn•4w ago
sorry still haven't had time to look into this - thanks for the bump. Still on my list. If anyone in the community has some time to look into / debug this we'd appreciate the assist, but it's still on my list.
Oren
OrenOP•4w ago
@stefano if you are blocked by this the problem is happening if you call node action from http handler try to place your node action logic directly in to http handler, this is the workaround I'm using for now
stefano
stefano•4w ago
i am getting your same exact problem - but not inside an http action, so i'm afraid i can't try that!
Oren
OrenOP•4w ago
is it node action being called from another node action?
stefano
stefano•4w ago
A much "simpler thing"... running this function normally (e.g. via the dashboard) will getme an error "Connection lost while action was in flight"; If I schedule that exact function from a non "use node" file (via ctx.scheduler) and exact same arguements you will get a "Transient error while executing action" failure in the logs.
"use node";

import { internalAction } from "../_generated/server";

import { thing1, thing2, vNode } from "./schema";

export const testAction = internalAction({
/*
*/
args: {
currentNodeToBeExecuted: vNode,
thing1: thing1.doc,
thing2: thing2.doc,
},

handler: async (ctx, args) => {
console.log("1");
},
});
"use node";

import { internalAction } from "../_generated/server";

import { thing1, thing2, vNode } from "./schema";

export const testAction = internalAction({
/*
*/
args: {
currentNodeToBeExecuted: vNode,
thing1: thing1.doc,
thing2: thing2.doc,
},

handler: async (ctx, args) => {
console.log("1");
},
});
Both thing1 and thing2 documents are sized >120KB. Cannot share the values nor the schema cause they contain sensitive data. What I can say is that both their schemas are complicated and very lengthy. Didn't reicive an error until the latest docker update

Did you find this page helpful?