-
Notifications
You must be signed in to change notification settings - Fork 38
lots of 403 Forbidden errors #7
Comments
Are you able to enable the logger and provide the log messages? Additionally, when the SDK sees a 403 it should keep the events in the local storage and attempt to resubmit them again later. Do you know if those event batches are retried and if they are successful on retry? If not, can you provide a sample batch that failed when receiving a 403? (Please be sure to redact application_key, cognito_identity_pool, cognito_id and any other potentially sensitive fields) |
I will enable the logger on the site. Unfortunately I can not provide a batch because the error is not reproducible on our local environments. We see it appear sporadically at our end user machines in our js error log monitors. |
here is what I got: https://mobileanalytics.us-east-1.amazonaws.com/2014-06-05/events InvalidSignatureException: Signature expired: 20151003T005631Z is now earlier than 20151003T014131Z (20151003T015631Z - 15 min.), [Function:(AMA.Client).clearBatchById] [Function:(AWS.MobileAnalyticsClient.Storage).saveToLocalStorage] LocalStorage Cache: {"AWSMobileAnalyticsGlobalAttributes":{},"AWSMobileAnalyticsGlobalMetrics":{}, 403 Forbidden: POST https://mobileanalytics.us-east-1.amazonaws.com/2014-06-05/events [Function:(AMA.Client).submitEvents] [Function:(AMA.Client).submitAllBatches] |
Looks very similar to aws/aws-sdk-js#527 |
Interesting, I went ahead and was able to reproduce the issue by setting my clock to the past (OSX + chrome). I then tried hardcoding the The line to change can be found here. |
I did the same and can confirm that setting correctClockSkew wouldn't fix the problem. Any other suggestions? |
Hmmm still investigating. Is there a way to verify that the clients showing the error do have a clock skewed? |
I've identified it as a Server side issue, I will post here once that fix has been deployed. |
Thanks! looking forward to it |
Can you confirm if you are seeing any improvement with your forbidden rate? |
Hi, I confirm - the problem with 403 response dissapeared |
In v0.9.1 autoCorrectClockSkew is now enabled by default. To disable it or provide other low level client configurations, you can use the new
|
restarting docker daemon fixed it
|
For about 20% of my users I see lots of 403 FORBIDDEN POST https://mobileanalytics.us-east-1.amazonaws.com/2014-06-05/events error. Reproducible in all browsers.
Usually it is preceded with something like this:
Ajax POST
Url: https://cognito-identity.us-east-1.amazonaws.com/
Response: 200 1083 milliseconds elapsed
Note the time of the response.
The text was updated successfully, but these errors were encountered: