RefirebaseRefirebase

Error Codes

Common Refirebase error codes and messages.

Overview

Refirebase automatically intercepts Firebase errors and converts them into standardized RefirebaseError objects containing a friendly message and a recognizable code.

Example
import { db } from './firebase';

const { error } = await db.firestore.get('users', '123');

if (error?.code === 'not-found') {
  console.log("User does not exist.");
}

All Error Codes

Error CodeMessage
permission-deniedYou do not have permission to perform this action.
not-foundThe requested resource was not found.
already-existsThis resource already exists.
unauthenticatedYou must be signed in to perform this action.
unavailableThe service is temporarily unavailable. Please try again.
cancelledThe operation was cancelled.
deadline-exceededThe operation timed out. Please try again.
resource-exhaustedQuota exceeded. Please try again later.
failed-preconditionThe operation failed because a precondition was not met.
auth/user-not-foundNo user found with this email address.
auth/wrong-passwordIncorrect password.
auth/email-already-in-useAn account with this email already exists.
auth/weak-passwordPassword should be at least 6 characters.
auth/invalid-emailInvalid email address.
auth/too-many-requestsToo many attempts. Please wait a moment and try again.
auth/network-request-failedNetwork error. Check your connection.
auth/popup-closed-by-userSign-in popup was closed before completing.
auth/cancelled-popup-requestOnly one sign-in popup can be open at a time.
storage/unauthorizedYou do not have permission to access this file.
storage/object-not-foundFile not found.
storage/quota-exceededStorage quota exceeded.
storage/retry-limit-exceededUpload failed after too many retries.