Skip to content

[馃摎]Holistically document all throwed exception codes.聽#6326

Description

@ChaserVasya

Use case

I use FirebaseFunctions and FirebaseAuth. I want to catch FirebaseException and show AlertDialog with special localized alert message, depending on what code is provided.

Problem

I can't find complete exception code list. firebase_auth.dart has scant lists before methods, but firebase_functions.dart hasn't them at all. FlutterFire Docs mentions about only few individual codes. Firebase has something looks like i want, but for Admin SDK (https://firebase.google.com/docs/auth/admin/errors). Is there the a similar list for FlutterFire?

Proposal

Holistically document all throwed exception codes.

Activity

  1. sjoerd0301 commented on Aug 5, 2021

    @sjoerd0301
    Contributor

    I agree that a list is neccesary. But not only for auth and functions, but for all plugins which may throw exceptions with errorcodes.

  2. Tom3652 commented on Sep 9, 2021

    @Tom3652

    In the meantime i have found them available in the class documentation :

    Capture d鈥檈虂cran 2021-09-09 a虁 12 52 23

  3. ChaserVasya commented on Sep 9, 2021

    @ChaserVasya
    Author

    @Tom3652, as mentioned in issue:
    ...firebase_auth.dart has scant lists before methods...
    Also, firebase_auth.dart generates some codes, which haven't been described in docs. Like unknown, network-request-failed. Thus, be careful.

  4. Tom3652 commented on Sep 9, 2021

    @Tom3652

    Ah !
    You are right thanks, feel stupid i have not read well enough..
    Hopefully this will be available soon and kept up-to-date, because making conditional statements with strings that can change can be dangerous.

  5. julio-lagos-imatia commented on Apr 5, 2022

    @julio-lagos-imatia

    Hi, any updated on this? Is there a list somewhere where I can find the list of error codes? That would be awesome, thanks in advance.

    I've been struggling to find them and I only find documentation related to other languages libraries.

  6. julio-lagos-imatia commented on Apr 5, 2022

    @julio-lagos-imatia

    @Ehesp @Salakar Sorry for disturbing but do you know where to find the error codes? It's a bit of a headache going trough all of the code tying to dig them

  7. cgalo commented on Apr 25, 2023

    @cgalo
    Contributor

    @julio-lagos-imatia Not sure if this is still useful but I usually parse through these error codes: https://firebase.google.com/docs/auth/admin/errors

  8. nathanmckean commented on Dec 5, 2024

    @nathanmckean

    Three years on and still no published list of errorCodes. Horrendous.

  9. Thembelani-M commented on Apr 29, 2025

    @Thembelani-M

    Hi, can someone please response and resolve this query.

  10. Lyokone commented on Jul 10, 2026

    @Lyokone
    Contributor

    Hi, we are working on providing a full list in the documentation. Thanks for bearing with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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