-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Return null on rawIspInfo instead of '' when data not available #646
base: master
Are you sure you want to change the base?
Conversation
Which wrong format message are you referring to? We are planning to release the next version soon and did refactor the same file, please check branch ipinfo_offlinedb |
Lets say, using cli, testing against a local server with the change proposed, a far server with default docker image, and a public test
|
Thank you for the example of usage but I still don't see what the problem is |
@adolfintel would this change break anything? The UI seems to handle the empty string correctly. But will it handle a null value as well? |
@sstidl I don't understand the use case either. I made it return an empty string instead of null specifically to avoid "accidental" null pointers, can't you just check if the string is empty? |
The empty rawIspInfo string was introduced in 2020, not all the public backend servers are ours, clearly this one hasn't been updated in ages. |
So the problem might be on cli not able to parse the json correclty when comes "" instead of null? |
This is to avoid the wrong format of message:
You're testing from: {"processedString":"172.17.0.1 - private IPv4 access","rawIspInfo":""}