Skip to content

abseralvo/fbdb-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproduction steps:

  1. clone the repo
  2. cd functions
  3. npm install

TO Test

  1. npm run serve
  2. hit the function endpoint http://localhost:5099/fbdb-test-001/us-central1/helloWorld

You should see the following error appear in your console @firebase/database: FIREBASE WARNING: wss:// URL used, but browser isn't known to support websockets. Trying anyway.

And if you wait long enough (1 min should be default) you will see the function timeout

To Fix

  1. add "@firebase/database-compat": "0.1.2" the dependency node in functions/package.json
  2. run npm i
  3. Go back to step 4

You should now see the execution without errors

About

debug @firebase/database to investigate production crashes in firebase functions using firebase-admin package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors