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.
It is possible to have spaces in the search query. When run in a Node environment, at least, this results in a
TypeErrorinmakeRequest. It appears as though themakeUrimethod 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.