step-up-labs / firebase-storage-dotnet

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

Storage Firebase, bad request 400 for GetDownloadUrlAsync #14

Closed medaymenjendoubi closed 4 years ago

medaymenjendoubi commented 6 years ago

I'm trying to get a download URL for a file but I have an exception, i use FirebaseAuthentication.net and FirebaseStorage.net in a VSTO Powerpoint project.

var url = await firebaseStorage.Child("parent").Child("filename").GetDownloadUrlAsync();

GetDownloadUrlAsync() throws an exception Exception occured while processing the request. Url: https://firebasestorage.googleapis.com/v0/b/Your-bucket.appspot.com/o/parent/filename bad request Response: { "error": { "code": 400, "message": "Invalid HTTP method/URL pair." } }

In a WPF or winform project the function works very well and I can make HTTP calls even with WebClient or RestClient but in a VSTO project always I have the same error Bad request: 400

marjandn commented 6 years ago

i have this problem too , does anyone solve this?

bezysoftware commented 6 years ago

Can you try using fiddler to sniff the traffic? Perhaps VSTO is changing the request somehow?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

Closing the issue due to inactivity. Feel free to re-open

LDATuan commented 2 years ago

Solution at here: https://github.com/step-up-labs/firebase-storage-dotnet/issues/2#issuecomment-304611162