autocomplete search bugs

  • 1
  • Problem
  • Updated 6 years ago
If searching with "KK" (without apostrophe) the autocomplete search returns no result (NULL value in Objective-C). I treat this as "Network unavailable", because other not found situations (like search with "KKK") returning an empty result. Why doesn't the search with "KK" return an empty instead no result?
Strange also, that the search with "KKB" finds a city (KKB, Alaska). So that city should already have been found with "KK" search.
Photo of dobry

dobry

  • 23 Posts
  • 1 Reply Like

Posted 6 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
We're looking into this...
Photo of David Fairman

David Fairman

  • 6 Posts
  • 2 Reply Likes
Hey dobry,

Thanks for bringing this to our attention! The search for "KK" was actually returning a NULL value because it was attempting to return an incorrectly formatted JSON response. One of the top responses when searching for "KK" is the personal weather station "KKAPRESC1". This weather station had an illegal character in the station description that was breaking the JSON response. This station was not returned when you query for "KKB" which is why that was still returning a city. We have removed the illegal character from the station description and it now returns a properly formatted response. Our autocomplete updates its station database every night so this fix will be live tomorrow morning as soon as the autocomplete updates.

Feel free to tack on any other queries that you find are returning a NULL value and we will be able to fix any problematic stations.
Photo of demodit

demodit

  • 3 Posts
  • 0 Reply Likes
Hi David, thank you for fixing this.
I ask you to do a database scan and to fix all outstanding inproper values.
Photo of David Fairman

David Fairman

  • 6 Posts
  • 2 Reply Likes
Hey Dobry,

I scanned the database and found 4 more weather station names with illegal characters. I have fixed all of them so you should not run into this problem anymore, it has all been cleaned up. Again, thanks for bringing this to our attention and if you find a broken autocomplete query in the future definitely shoot it our way so we can clean it up.

Thanks!

Dave
Photo of dobry

dobry

  • 23 Posts
  • 1 Reply Like
Thank you!