Using a signed Resumable Upload URL fails with 403 unless content_type is empty #289
Labels
api: storage
Issues related to the googleapis/google-resumable-media-python API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
Steps to reproduce
You will get a 403 error from google that says
The request signature we calculated does not match the signature you provided. Check your Google secret key and signing method.
. This is because the content_type passed by the library to the signed url is not correct. If you instead generate the url without a content_type - it will succeed - but the object will have the content typeapplication/json
. I'll send in a PR shortly with a fix that works for me.The text was updated successfully, but these errors were encountered: