step-up-labs / firebase-storage-dotnet

C# library for Firebase Storage
MIT License
140 stars 35 forks source link

Firebase Storage Issue #2

Closed Supriya-Infinx closed 7 years ago

Supriya-Infinx commented 7 years ago

Hi,

I am using FirebaseStorage.net for uploading image in my c# project Below is the piece of code i am using for upload purpose var task = new FirebaseStorage("path") .Child("data").Child("random").Child("file.png").PutAsync(xmlStream);

However i am getting below listed error

The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I have added reference to required assembly.

Please do the needful.

bezysoftware commented 7 years ago

Can you try the sample project? It works for me

Supriya-Infinx commented 7 years ago

Above issue is resolved.

Now i am getting below error { "error": { "code": 400, "message": "Invalid HTTP method/URL pair." } }

ghost commented 7 years ago

This could be either authentication issues or simply the format of your bucket name. Verify your authentication and your bucket name.

pallavbohara commented 7 years ago

Me too was getting this error- { "error": { "code": 400, "message": "Invalid HTTP method/URL pair." } But after simplifying bucket name from "gs://XXXXXX-bdded.appspot.com/" t o "XXXXXXX-bdded.appspot.com" solved my issue

eduardopthiago commented 7 years ago

Yes @pallavbohara , it worked for me too. Thank you!

arunap commented 6 years ago

Yes @pallavbohara , this worked for me as well. Thanks!!!

NathanHanegreefss commented 6 years ago

@pallavbohara Worked for me! Thank you very much!

Malickali commented 6 years ago

@pallavbohara i am new here in firebase can you guide me how to change gs://

hydro1337x commented 5 years ago

Also worked, thank you !!!

mayurgudi commented 4 years ago

Me too was getting this error- { "error": { "code": 400, "message": "Invalid HTTP method/URL pair." } But after simplifying bucket name from "gs://XXXXXX-bdded.appspot.com/" t o "XXXXXXX-bdded.appspot.com" solved my issue

Thank you so much !! Relieved me

Junior-OliveiraDeveloper commented 3 years ago

Thanksssss

sinmicsin commented 3 years ago

@pallavbohara hundred thanks man !!! :')

mayronjr commented 3 years ago

Me too was getting this error- { "error": { "code": 400, "message": "Invalid HTTP method/URL pair." } But after simplifying bucket name from "gs://XXXXXX-bdded.appspot.com/" t o "XXXXXXX-bdded.appspot.com" solved my issue

I'm having the same issue, but my bucket name is already in the format "XXXXXXX-bdded.appspot.com" and it's not working. I'm having this problem in React-Native. In the React aplication it's working normally

DANISHPANDITA commented 3 years ago

Me too was getting this error- { "error": { "code": 400, "message": "Invalid HTTP method/URL pair." } But after simplifying bucket name from "gs://XXXXXX-bdded.appspot.com/" t o "XXXXXXX-bdded.appspot.com" solved my issue

Can you help me in doing that. I don't know how to do it.

Senuka072 commented 2 years ago

Me too was getting this error- { "error": { "code": 400, "message": "Invalid HTTP method/URL pair." } But after simplifying bucket name from "gs://XXXXXX-bdded.appspot.com/" t o "XXXXXXX-bdded.appspot.com" solved my issue

can you explain that i am getting the same issue. please

PMLS3 commented 2 years ago

how does one change the bucket name? Will all download links still be able to work?

L10Messi10 commented 1 year ago

This still occurs to me. Never had this before. I also removed those gs:// and still getting this error, I hope someone will help.