Skip to content

Firebase Cloud Functions - HTTPS exceptions not handled correctly on iOS #803

Description

@nickrout-thrif

The iOS implementation of how Firebase Cloud Functions HTTPS errors are handled does not align with Android (or otherwise).

See:
https://github.com/GitLiveApp/firebase-kotlin-sdk/blob/master/firebase-functions/src/appleMain/kotlin/dev/gitlive/firebase/functions/functions.kt#L95

Instead of mapping it correctly, it currently just returns a hardcoded FirebaseFunctionsException with:

  • An error code that is always FunctionsExceptionCode.UNKNOWN
  • A description!! (of the class) as the message
  • An always null details

I see that there is a comment that fixing this may depend on firebase/firebase-ios-sdk#11862, but that issue was closed some time ago.

Is there any way this can be fixed so that we can get the correct values being sent from Firebase?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions