Python returning no results for queries with %20 or whitespace.
See original GitHub issueYour service returns no results for multi keyword searches using spaces or %20 for python.
Illustration: About a month ago I ran this query through curl:
curl cht.sh/python/exponential%20backoff
# Exponential backoff: time.sleep with random.randint(0, 1000)
# .... etc etc.
# [NPE] [so/q/27438273] [cc by-sa 3.0]
But now your service returns the error: "Unknown cheat sheet"
curl cht.sh/python/exponential%20backoff
# Unknown cheat sheet.
# Please try to reformulate your query
$ curl "cht.sh/python/exponential backoff"
# Unknown cheat sheet.
# Please try to reformulate your query
Looks like I have to use plus only, instead of spaces, like this to get a response:
$ curl cht.sh/python/exponential+backoff
# Exponential backoff: time.sleep with random.randint(0, 1000)
# .... etc etc.
# [NPE] [so/q/27438273] [cc by-sa 3.0]
Same occurs with browser, clicky: https://cheat.sh/python/exponential backoff
More examples of what used to return a helpful response from last month, but is not working now:
curl "cht.sh/python/exists dictionary"
curl "cht.sh/python/collapse+interior+spaces"
curl "cht.sh/python/octal example"
curl "cht.sh/python/deep copy"
curl "cht.sh/python/flush stdout print"
curl "cht.sh/python/lambda example"
clicky: https://cheat.sh/python/exists dictionary https://cheat.sh/python/lambda example https://cheat.sh/python/deep copy
All of these used to return a stackoverflow entry exists%20dictionary
-> so/q/1602934
but now it returns “Unknown cheat sheet.”
It’s been like this for the last 48 hours or more. The mapping between %20
literal space, and +
seems to be messed up somewhere in transit.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
Yes, I can acknowledge it. I will investigate
Why not, I am oppening an issue for this feature