Issue
I keep getting this error after 5mins and 1sec after executing the code
<code>node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[FirebaseError: internal] {
code: 'functions/internal',
customData: undefined,
details: undefined
}
Node.js v22.1.0
</code>
<code>node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[FirebaseError: internal] {
code: 'functions/internal',
customData: undefined,
details: undefined
}
Node.js v22.1.0
</code>
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[FirebaseError: internal] {
code: 'functions/internal',
customData: undefined,
details: undefined
}
Node.js v22.1.0
This is my client code
<code>export const app = initializeApp(firebaseConfig);
const functions = getFunctions(app, "us-central1");
connectFunctionsEmulator(functions, "127.0.0.1", 5001);
const testFunction = httpsCallable(functions, 'doTask', {timeout: 1200000})
testFunction({url: "url", vid: "test6"})
.then((result) => console.log(result))
</code>
<code>export const app = initializeApp(firebaseConfig);
const functions = getFunctions(app, "us-central1");
connectFunctionsEmulator(functions, "127.0.0.1", 5001);
const testFunction = httpsCallable(functions, 'doTask', {timeout: 1200000})
testFunction({url: "url", vid: "test6"})
.then((result) => console.log(result))
</code>
export const app = initializeApp(firebaseConfig);
const functions = getFunctions(app, "us-central1");
connectFunctionsEmulator(functions, "127.0.0.1", 5001);
const testFunction = httpsCallable(functions, 'doTask', {timeout: 1200000})
testFunction({url: "url", vid: "test6"})
.then((result) => console.log(result))
My function require sometime between 10-15 mins to execute. The function doesn’t show any error and continues to run successfully after the client crashed. I tried bypassing the function to return instantly and the client worked just fine. However I can’t seems to find any documentation indicating the limit on timeout on JS client.
New contributor
user24882924 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.