Skip to content

FirebaseError Installations: Could not process request. Application offline. (installations/app-offline).ย #4922

Open
@m-nathani

Description

@m-nathani

[REQUIRED] Describe your environment

  • Operating System version: Linux
  • Browser version:

Google Chrome | 90.0.4430.212ย (Official Build)ย (64-bit)

  • Firebase SDK version: 7.16.0
  • Firebase Product: messaging

[REQUIRED] Describe the problem

Got the below on ErrorBoundry of my application using Sentry..

FirebaseError Installations: Could not process request. Application offline. (installations/app-offline).

Moreover, please find the below for complete stacktrace of it..

Relevant Code:

../../src/helpers/get-installation-entry.ts in triggerRegistrationIfNecessary at line 98:23

../../src/helpers/get-installation-entry.ts in triggerRegistrationIfNecessary at line 98:23

): InstallationEntryWithRegistrationPromise {
  if (installationEntry.registrationStatus === RequestStatus.NOT_STARTED) {
    if (!navigator.onLine) {
      // Registration required but app is offline.
      const registrationPromiseWithError = Promise.reject(
        ERROR_FACTORY.create(ErrorCode.APP_OFFLINE)
      );
      return {
        installationEntry,
        registrationPromise: registrationPromiseWithError
      };
../../src/helpers/get-installation-entry.ts at line 49:30

): Promise<InstallationEntryWithRegistrationPromise> {
  let registrationPromise: Promise<RegisteredInstallationEntry> | undefined;
  const installationEntry = await update(appConfig, oldEntry => {
    const installationEntry = updateOrCreateInstallationEntry(oldEntry);
    const entryWithPromise = triggerRegistrationIfNecessary(
      appConfig,
      installationEntry
    );
    registrationPromise = entryWithPromise.registrationPromise;
    return entryWithPromise.installationEntry;
../../src/helpers/idb-manager.ts in call at line 102:20

  if (dbPromise) {
    (await dbPromise).close();
    await deleteDb(DATABASE_NAME);
    dbPromise = null;
  }
}
function getKey({ appConfig }: FirebaseInternalDependencies): string {
  return appConfig.appId;
}
Called from: ../node_modules/tslib/tslib.es6.js in step

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