IP Geo Location

FREEMIUM
Verified
Durch Geo API | Aktualisiert vor einem Jahr | Location
Popularität

9.9 / 10

Latenz

61ms

Service Level

100%

Zurück zu allen Diskussionen

Empty response problem

avatar
karthik.bharadwaj
vor 9 Monaten

Hi,
While querying for /check api, there are cases where it returns empty / no response with status code 200. What might be the case and how to avoid it

avatar
natkapral commented vor 9 Monaten

We analyzed your requests to /ip/check endpoint for the last several days and all of them had a valid response with data in the body.

avatar
karthik.bharadwaj commented vor 9 Monaten

Yes sorry for the delay in response
We are subscribed under the organization name “Lanesquare Technology Pvt Ltd”

avatar
natkapral commented vor 9 Monaten

This doesn’t sound like an issue with the API itself. Regardless of the response code there is always some data in the response body. There is also nothing in our logs that suggests that there are issues.
There are still several things that can be checked:

  1. RapidAPI has a log of all your requests. You can find it in the dashboard. If you know the day and approximate time when this happened you can try to see if there are any responses without body.
  2. Please check the implementation to see what happens if it takes a bit longer to get the response from the api
  3. Try to use this API directly from us https://getgeoapi.com

Can you please provide the username who is subscribed to the api and may be we would be able to find something user specific.

avatar
karthik.bharadwaj commented vor 9 Monaten
  1. The same IP giving response few times and no result few times … we have observed in the same day
  2. Empty response means => The response preview is not available in debug console ( so the response body is not available ) but the http response status code is 200
  3. What data from this API we use in our application => we use country name, country code and currency code
avatar
natkapral commented vor 9 Monaten

Hi,
Without a specific example it would be harder to find the issue, however the following questions might help.
You mentioned that “the same IP can give request few times and will not give result few other times”. Does this happen on the same day or it returns results on one day and doesn’t return anything (or has missing data) on the other day?
What do you mean by empty response? Is it completely empty or it includes the schema without any data?
What data from this API do you use in your application?

avatar
karthik.bharadwaj commented vor 9 Monaten

Hi natkapral,
So we do not have any specific example as such … we have observed this with UAE and China IP’s but the same IP can give request few times and will not give result few other times. So we are unable to pinpoint on a particular IP address. Is there any way to catch the error when this happens.

avatar
natkapral commented vor 9 Monaten

Hi,
Empty response with 200 status means that the IP address is valid, but it’s private or reserved.
If you have any specific examples we will look deeper to see if there is an issue.

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen
Bewertung: 2.3 - Stimmen: 4