-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callable Function throw Deadline Exceeded Error even on successful response #3289
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
For reference, could this be a proposed solution so that the timer is cleared when Promise.race is satisfied?
|
@stevecastaneda issue #2746 mentions the issue only manifests in Node. Is your issue also happening in Nodejs (server rendering)? Just want to clarify because you include React code, also that I can't reproduce it in browser. |
@Feiyang1 Thanks for looking at this for me. I'm running React locally along with emulated firebase functions. Interestingly enough, I just noticed that after deploying the site to a host along with functions to Firebase, I don't get the error anymore. (the deployed site is using firebase functions vs. local emulated functions, same code though). So perhaps this is isolated to running a local build of React? I could possibly reproduce if we start a new project at Firebase, connect it to a fresh install of React, emulate a simple function locally. I'm just not 100% sure how I'd share that if the project is built on my Google login. Another thought is that maybe it could be an emulated function and not react. I'm going to try using the deployed function instead to see if the locally running React build throws the error... |
Using the deployed function still threw the error, so it looks like the culprit is the local build of React that I'm running. This is create-react-app with Typescript. I start the server using react-scripts start. |
Nevermind. It's also happening on the deployed site, unfortunately. Tested by adding a 10-second timeout to the callable function (that did return well before that). Any recommendations on how I can help diagnose this issue? |
Would you mind sharing the deployed site? |
I'm able to trigger this error even with the simplest of callable functions. Here's an example: https://gist.github.com/stevecastaneda/7c07f91ce1eeef005175071efda39401 |
#3330 should resolve the issue. |
@Feiyang1 Thank you! |
[REQUIRED] Describe your environment
firebase-js-sdk/packages/functions/src/api/service.ts
Line 187 in ee130b5
[REQUIRED] Describe the problem
Steps to reproduce:
This is a continuation from issue #2746, and I'm experiencing the same
deadline-exceeded
error even after Promise.race successfully returns a promise (as evidenced by the callable function returning data as I expect).@minism
Function Relevant Code: [Typescript]
Frontend (React)
The text was updated successfully, but these errors were encountered: