c++ - Getting 403 Forbbiden error with Google cloud -
we getting "forbidden error(403)" while trying upload data on google cloud when there time skew on machine i.e. machine clock not synchronized/updated ntp server.
why google not return proper error information?
it setting "date" field incorrectly. (signed) api v1.0 requests must include "date" header, , header must part of signature request. date field must within 15 minutes of real clock time google's servers receive request. if clock more 15 minutes skewed, signed requests rejected.
for more, please see v1.0 api documentation here: https://developers.google.com/storage/docs/reference/v1/developer-guidev1#authentication under canonicalheaders section.
this case s3. see here: http://aws.amazon.com/articles/1109?_encoding=utf8&jiveredirect=1#04
Comments
Post a Comment