09-24-2021 09:34 AM - last edited on 01-17-2024 01:41 PM by Sabah Kadir
I am using https://dnaspaces.io/api/location/v1/clients?ipAddress= to retrieve location information. It works great passing in an IPV4 address, but when passing in a IPV6 address it always returns all clients as if I didn't pass in an IP address at all.
Any ideas?
Thanks
Stephen
09-29-2021 09:03 AM
Looks like that colons in IPv6 address (fe80:0000:0000:0000:14c4:5dbb:b53d:b71f) make search to match substring between colons. It should be a bug in the code. Will look into a fix.
09-29-2021 09:13 AM
Thanks for you help with this.
09-29-2021 11:29 AM
Actually you can pass "searchType=wildcard" parameter to tell the API to perform correct match. API would be like:
/api/location/v1/clients?ipAddress=2001:1948:0212:11d8:e583:bbbf:4dcf:10d0&searchType=wildcard
Please try and let mw know whether it is working
09-30-2021 09:14 AM
That worked the first time. So then I tried with the searchType=wildcard on an IPV4 address which did not seem to work. No errors, just an empty json response. When I plugged back in the same IPV6 address that worked the first time, it too now just returns an empty json response.
09-30-2021 09:23 AM
And now it's working again. I've noticed a lot of time when I get an empty json response back, that if I wait 15-30 minutes and make the same postman call, I then get results back
10-01-2021 08:57 AM
Can I get the tenantId that you are testing?
10-01-2021 12:30 PM
08-03-2022 08:47 AM
Just getting back to this. It's been a long time, but our on prem MSE's are now having issues. Has there been any resolution to this issue?
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide