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
Functions that throw already-exists generate the right HTTP response (seen in Postman as HTTP 409 Conflict). However, in the iOS client bubbles the error to the client as notFound. The commit mentioned below shows the affected areas and includes a fix.
Steps to reproduce:
Simple. Just throw the following from a Cloud Function:
throw new functions.https.HttpsError('already-exists', 'Resource exists')
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
The error code problem is a regression from Firebase 8 to Firebase 9. The 409 processing looks like it has always been an issue. We'll follow up on a fix for 9.3.0.
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Functions that throw
already-exists
generate the right HTTP response (seen in Postman asHTTP 409 Conflict
). However, in the iOS client bubbles the error to the client asnotFound
. The commit mentioned below shows the affected areas and includes a fix.Steps to reproduce:
Simple. Just throw the following from a Cloud Function:
throw new functions.https.HttpsError('already-exists', 'Resource exists')
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
The text was updated successfully, but these errors were encountered: