-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: batch support #6
Comments
Hi vladc, Yes, this has to do with a weird functionality of the IP-API batch request. I pointed it out here in the back end package, but here is the quote:
I will add this to the docs so that it is more clear on why this is so. Also, if you would like to confirm this, weird functionality, if you were to run a batch query against IP-API specifying all fields, and then rerun those queries as single requests with all fields, you should see that some fields are in fact omitted from the batch query results. |
BenB196, The same data is returned, but the batch endpoint does not support the "reverse" field.
If you need to support the reverse field for the batch feature, you can do the lookup locally. |
Ok, if that is the case then, I will add support for this. Please see: BenB196/ip-api-go-pkg#1 |
Also added support for reverse lookups on batch queries, resolving issue #6.
Hi vladc, This issue will be fixed in v0.0.6. I have made it so that if you perform a batch query against the proxy. The proxy will first execute a regular batch query against IP-API. Then it will perform reverse lookups locally and merge the results together. Thank you for pointing out this difference. |
Release v0.0.6 is now live, and this should be fixed. |
Is there a reason for why batch requests are broken apart like this?
The text was updated successfully, but these errors were encountered: