You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to have spaces in the search query. When run in a Node environment, at least, this results in a TypeError in makeRequest. It appears as though the makeUri method does not properly URIEncode the space character.
The same problem actually plagues an empty search query as well (e.g. searching tags only). This is because the empty string is replaced with a single space character (" "), which hits the same problem mentioned above.
I was able to bypass the empty search query issue locally by simply removing that space character and leaving it as the empty string (""). I am not sure if this works as expected or if it breaks something else that is expected.
The text was updated successfully, but these errors were encountered:
ericdrobinson
changed the title
Empty search query results in TypeError
Spaces in search query result in TypeError
Apr 3, 2017
It is possible to have spaces in the search query. When run in a Node environment, at least, this results in a
TypeError
inmakeRequest
. It appears as though themakeUri
method does not properly URIEncode the space character.The same problem actually plagues an empty search query as well (e.g. searching tags only). This is because the empty string is replaced with a single space character (
" "
), which hits the same problem mentioned above.I was able to bypass the empty search query issue locally by simply removing that space character and leaving it as the empty string (
""
). I am not sure if this works as expected or if it breaks something else that is expected.The text was updated successfully, but these errors were encountered: