angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.68k stars 2.19k forks source link

Error 404 on put file to storage #2184

Closed itlpps closed 3 years ago

itlpps commented 5 years ago

Version info

Angular: 8.x.x

Firebase: 7.0.0

AngularFire: 5.2.1

My config:

      authDomain: 'xxx.firebaseio.com',
      databaseURL: 'https://xxx.firebaseio.com',
      projectId: 'xxx',
      storageBucket: 'xxx.appspot.com',
      messagingSenderId: 'xxx'

Actual behavior

Apparently it is forming the storage url with config databaseURL instead of storageBucket.

Post url, generated when using putstring:

https://firebasestorage.googleapis.com/v0/b/https://xxx.firebaseio.com/o?name=images%2Fchat%2F8a6af41a5c3c2f59a801

Expected behavior

Expected url:

https://firebasestorage.googleapis.com/v0/b/xxx.appspot.com/o?name=images%2Fchat%2F8a6af41a5c3c2f59a801

jamesdaniels commented 3 years ago

Closing as outdated.