You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when deploying a Cloud Function using create(), we sometimes see a 404 error when immediately trying to get() the function. This happens because the function creation process in Cloud Functions v1 is asynchronous—create() returns before the function is fully registered, causing transient 404 responses.
it happens here
I have a fix ready that adds proper polling logic:
Retry on 404 (since it means the function is not yet recognized).
Handle everything else as usual
Should we continue using Cloud Functions v1, or should we migrate to Cloud Functions v2?
In v2, we can poll the long-running Operation instead of polling get(), but moving to v2 might require more changes.
Would love input on whether we should stay with v1 and apply the polling fix, or consider moving to v2.
Note** Almost every time, get() fails with a 404 unless a manual delay is added.
Side Note: Lithops is awesome!
The text was updated successfully, but these errors were encountered:
Currently, when deploying a Cloud Function using create(), we sometimes see a 404 error when immediately trying to get() the function. This happens because the function creation process in Cloud Functions v1 is asynchronous—create() returns before the function is fully registered, causing transient 404 responses.
it happens here
I have a fix ready that adds proper polling logic:
Retry on 404 (since it means the function is not yet recognized).
Handle everything else as usual
Should we continue using Cloud Functions v1, or should we migrate to Cloud Functions v2?
In v2, we can poll the long-running Operation instead of polling get(), but moving to v2 might require more changes.
Would love input on whether we should stay with v1 and apply the polling fix, or consider moving to v2.
Note** Almost every time, get() fails with a 404 unless a manual delay is added.
Side Note: Lithops is awesome!
The text was updated successfully, but these errors were encountered: