As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Kinvey.File.upload - Google Cloud Storage returns 403 Forbidden
r
ryanmills
started a topic
over 9 years ago
Google Cloud Storage is returning the following error when attempting to upload a file via the HTML5 function Kinvey.File.upload:
SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your Google secret key and signing method.PUT:text/html; charset=UTF-8 1407189186 x-goog-acl:public-read /kinvey_production_ce3e3fb1d1bb441ca0bb3b6c1510580b/a388f753-5374-49c0-9ef8-3a7f500de2d7/dbad63b1-bf95-4d3e-8137-7f90db5b8951
Interesting, I'm also getting a `SignatureDoesNotMatch` error, only on [Kinvey.File.download](https://support.kinvey.com/discussion/201272295/kinvey-file-download-error-signaturedoesnotmatch#latest). Upload is working fine.
a
adampax
said
over 9 years ago
Any change for you? Still happening here.
r
ryanmills
said
over 9 years ago
No joy and no community support by Kinvey. Time to look elsewhere.
C
Caroline
said
over 9 years ago
Hey Ryan and Adam,
This is definitely strange behavior and we're investigating now. I will keep you posted!
M
Mark
said
over 9 years ago
I am able to reproduce your problem in Firefox 32, this seems a browser-specific issue. Can you try specifying the mime type when uploading, like:
It appears "; chartset=UTF-8" is being appended to the mimeType request to Google Cloud Storage but not being specified in the Kinvey API request. Therefore the signature is invalid.
M
Mark
said
over 9 years ago
Yeah, seems to be something that differs between browsers. Firefox appends the charset if you don’t specify it (therefore invalidating the signature), however Chrome doesn’t seem to do that (yet...).
ryanmills
SignatureDoesNotMatch
The request signature we calculated does not match the signature you provided. Check your Google secret key and signing method.PUT:text/html; charset=UTF-8 1407189186 x-goog-acl:public-read /kinvey_production_ce3e3fb1d1bb441ca0bb3b6c1510580b/a388f753-5374-49c0-9ef8-3a7f500de2d7/dbad63b1-bf95-4d3e-8137-7f90db5b8951NetworkError: 403 Forbidden - https://storage.googleapis.com/kinvey_production_ce3e3fb1d1bb441ca0bb3b6c1510580b/a388f753-5374-49c0-9ef8-3a7f500de2d7/dbad63b1-bf95-4d3e-8137-7f90db5b8951?GoogleAccessId=558440376631@developer.gserviceaccount.com&Expires=1407189186&Signature=gVoT5Ufdnti1tP0RlnQ7b1BW5DJ98T9TVJYD5cP3tCjvttb3axeGvq2TUHUH4TslK5L8qnugFJH8xRL457bCTIk60Z6qex0RhdZRaZPsIPs5uxHQpu2BssfZs%2FP%2FzyL%2FDHDLgTWLwgOcu%2Fe4bnzBTvcuOCVw05wz6T8RpIq4fRQ%3D
Request headers include:
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cache-Control private, max-age=0, no-transform
Content-Length 11
Content-Type text/html; charset=UTF-8
Host storage.googleapis.com
Origin http://localhost:3000
Referer http://localhost:3000/
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
x-goog-acl public-read
It looks like Kinvey is returning a bad signature?