Closed pdemilly closed 4 years ago
I am getting the same issue after 60s although I have defined timeoutSeconds: 300. According to the logs the function completes with no errors at around 72s. "@angular/fire": "^5.2.1",
I had the same issue. But I found a solution using the firebase JS SDK. There are 2 timeouts you can handle, one for the function that runs in the server and other for the client. For the client you can pass a timeout in the JS SDK functions().httpsCallable(functionName, {timeout: 300000});
. The functions.HttpsCallableOptions
parameter is not available in AngularFire 6.0.0.
Version info
Angular:
Firebase:
AngularFire:
"@angular/fire": "^5.2.0-rc.3",
Other (e.g. Node, browser, operating system) (if applicable):
Test case
Steps to reproduce
in Angular
in node
exports.myNodeFunction = functions.runWith ({ timeoutSeconds: functions.MAX_TIMEOUT_SECONDS }).https.onCall ((data, context): Promise => {
return setTimeout (() => 'function completed successfully', 3 60 1000);
});
Expected behavior
get "function completed successfully" on console
Actual behavior
get an error after a minute