foursquare places API GET request returns 503 Bad Gateway or Header overflow

Viewed 219

Problem

I am trying to fetch coffee stores around a specific latitude, longitude within a certain radius but I am failing.


My query string looks like this

https://api.foursquare.com/v3/places/search?ll="41.8781,-87.6298"&radius=10000&query="coffee"

I've provided my authentication key inside of the header

output from postman


Why am I getting this response? 503 means that the server is down, but the foursquare website tells that the website is up and running. What am I doing wrong? link to places api

1 Answers

I was getting the same error in code and on Postman. In Postman, I had to uncheck the existing Accept header and add another with the application/json value to get it to work correctly.

Screenshot of Postman headers

Related