step-up-labs / firebase-storage-dotnet

C# library for Firebase Storage

Repository from Github https://github.comstep-up-labs/firebase-storage-dotnetRepository from Github https://github.comstep-up-labs/firebase-storage-dotnet

Storage Firebase, bad request 400 for GetDownloadUrlAsync

medaymenjendoubi opened this issue · comments

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

i have this problem too , does anyone solve this?

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

commented

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.

commented

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

Solution at here:
#2 (comment)