Skip to content

FR: Distinguish between 500 errors from the server and network errors in firebase functions #7011

Open
@ishowta

Description

@ishowta

Calling functions when there is no network connection, for example, will return an Internal error.
If functions returns 500, it also returns an Internal error, so we cannot distinguish between the two.

2023-02-06_114957

In the case of auth, an auth/network-request-failed error is returned when there is no network connection.

_fail(auth, AuthErrorCode.NETWORK_REQUEST_FAILED);

I would like to be able to distinguish between these for recovery and error investigation.

edit:

workaround

INTERNAL: Error on the functions side
internal: basically a network problem

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions