Hi.
I am new to Movie API. And I am stuck with 403 Error.
When I run my app I see API for one second and after that I get 403 with message like this:
"403 ERROR
The request could not be satisfied.
Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
Generated by cloudfront (CloudFront)
Request ID: RgHrk_Tceg-jH7-Qsqqoc6yHoeiWhgpnrpYu5uN35Ahn2E_jgxv8OA=="
I created API key and tested it on your website and got OK 200 status. But when I try to implement it on my app I stuck.
Many thanks for your help.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on January 21, 2020 at 12:48 PM
Hi @ParaNo1d,
Double check that you're not sending a request body along with your
GET
request. There's two other examples that I know of in JavaScript and PHP here and here. There's a clear cURL example in the first link.Cheers.
Reply by ParaNo1d
on January 21, 2020 at 1:22 PM
Hi again.
This is my Network.js and I don't see that I sending body with GET. Do I missing something?
Reply by Travis Bell
on January 21, 2020 at 7:36 PM
I am not familiar with what exactly you're doing there but if you're trying to execute a
GET
request, my guess is you are sending a request body given this line:Make sure when you're issuing a
GET
, you're not setting that line.Reply by ParaNo1d
on January 22, 2020 at 5:41 AM
I'm still not sure what I am missing here.
Can you please check my repo on GitHub?
https://github.com/ivanradunkovic/MovieApp
Reply by countach
on October 24, 2022 at 4:44 AM
Hi.
I just fixed this 403 CloudFront response by adding a User-Agent header in my curl request.