X-Cache: Error from cloudfront during REST call - Mendix Forum

X-Cache: Error from cloudfront during REST call

0

Hello fellow Mendix devs,

I am currently trying to get the PostalCodeAPI working but i get this cloudfront error

Response content for GET request to https://api.postcodeapi.nu/v2/addresses/?postcode=2512XD&number=2
HTTP/1.1 429 
Content-Type: application/json
Content-Length: 32
Connection: keep-alive
Date: Wed, 09 Jan 2019 15:37:22 GMT
x-amzn-RequestId: 752e08fb-1424-11e9-987b-b520283e0988
x-amz-apigw-id: TPg_8FaKjoEFojg=
X-Amzn-Trace-Id: Root=1-5c361532-117e92c0f6698368c756835e;Sampled=0
X-Cache: Error from cloudfront
Via: 1.1 5515890e7ce0a4b8eaa000066bc1c8f7.cloudfront.net (CloudFront)
X-Amz-Cf-Id: wkpNujIR9xPS8K_3xOqfO6x0fPChfG5YX9PLsXJz8LYmrp-EcyHOpg==

{"error":"Rate limit exceeded."}

I was hoping maybe one of you have encountered this before. The weird thing is that in a different app with the same key we do get a correct JSON back.

 

Kind regards,

 

Wouter

asked
1 answers
1

Hi Wouter,

  It looks like the error you are seeing is "Rate Limit Exceeded" from CloudFront, which I suspect is what postcodeapi is using to prevent ddos attacks.  Maybe that is something you need to bring up with their support team?  I am not sure the issue is living in Mendix or with your REST call.

answered