IP Geo Location

FREEMIUM
Verified
By Geo API | Updated a month ago | Location
Popularity

9.9 / 10

Latency

181ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Empty response problem

Rapid account: Karthik Bharadwaj
karthik.bharadwaj
3 years ago

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

Rapid account: Natkapral
natkapral Commented 2 years ago

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.

Rapid account: Karthik Bharadwaj
karthik.bharadwaj Commented 2 years ago

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

Rapid account: Natkapral
natkapral Commented 2 years ago

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.

Rapid account: Karthik Bharadwaj
karthik.bharadwaj Commented 2 years ago
  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
Rapid account: Natkapral
natkapral Commented 2 years ago

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?

Rapid account: Karthik Bharadwaj
karthik.bharadwaj Commented 2 years ago

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.

Rapid account: Natkapral
natkapral Commented 3 years ago

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.

Join in the discussion - add comment below:

Login / Signup to post new comments