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
The old Google websearch API is deprecated.
Because of this the bot throws
Body: /search cat
Traceback (most recent call last):
File ".../src/router.py", line 76, in handle_callback
data = callback(message, match)
File ".../src/views/google.py", line 29, in google_search
page_url = urllib.unquote(req.json()["responseData"]["results"][0]["url"])
TypeError: 'NoneType' object has no attribute 'getitem'
at me when i try to search something.
An fix would be to modify the code to fit the custom search API.
The text was updated successfully, but these errors were encountered:
The old Google websearch API is deprecated.
Because of this the bot throws
Body: /search cat
Traceback (most recent call last):
File ".../src/router.py", line 76, in handle_callback
data = callback(message, match)
File ".../src/views/google.py", line 29, in google_search
page_url = urllib.unquote(req.json()["responseData"]["results"][0]["url"])
TypeError: 'NoneType' object has no attribute 'getitem'
at me when i try to search something.
An fix would be to modify the code to fit the custom search API.
The text was updated successfully, but these errors were encountered: