403 error when trying from Android #552
Replies: 5 comments
-
403 typically means it was rejected by our CDN, likely from a missing user agent. Given you attempted to provide one, we need the CDN error code that is returned in the 403 body. |
Beta Was this translation helpful? Give feedback.
-
@scadergit this is what I got so far
|
Beta Was this translation helpful? Give feedback.
-
2022-05-08 19:45:19.636 11554-11584/? E/ErrorHttp: {Cache-Control=max-age=0, Connection=close, Content-Length=308, Content-Type=text/html, Date=Sun, 08 May 2022 23:45:20 GMT, Expires=Sun, 08 May 2022 23:45:20 GMT, Mime-Version=1.0, Server=AkamaiGHost, Strict-Transport-Security=max-age=31536000 ; includeSubDomains ; preload, Vary=Accept,Feature-Flags,Accept-Language, X-Android-Received-Millis=1652053519623, X-Android-Response-Source=NETWORK 403, X-Android-Selected-Protocol=http/1.1, X-Android-Sent-Millis=1652053519599, X-Edge-Request-ID=1a2833f3} |
Beta Was this translation helpful? Give feedback.
-
Access Denied |
Beta Was this translation helpful? Give feedback.
-
The problem is that the user agent is too generic and getting lumped into a security rule to thwart abuse. You will have better results if you set the user agent to a string that represents your app/contact, a few examples:
This also provides a means to contact you if for some reason your application triggers a security rule. (Eventually, this will be replaced by API keys, but that is not our current priority.) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I am trying to make an Android app that uses this, I am doing something like
but I keep getting 403 error
Beta Was this translation helpful? Give feedback.
All reactions