I am having a very strange issue with ipinfo.io. This is the code I use to call ipinfo (in order to catch location data on user signup process):
$.ajax({
url: "http://ipinfo.io/json",
type: 'GET',
datatype: 'json',
async: false,
success: function(data) {
if(data) {
console.log(data)
}
}
})
That code is present in my html (.hbs) file, and I run the entire thing through node on localhost:3000.
Every single time I get error 429: too many requests
When I create manually a simple html file and run it, it works like charm, but not when I host it in my app (localhost:3000/users/signup) This is very strange since I am pretty sure that from the code, it is called only once.