firebase / firebase/firebase-js-sdk
FirebaseError Installations: Could not process request. Application offline. (installations/app-offline).
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
### [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```
```javascript
../../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 {
let registrationPromise: Promise | 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
```
Contributor guide
Assessment
This issue has not been assessed yet.