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
Any solutions newbie here . followed the documentation ended up here.
downloaded module
open as pycharm project
done webhook setup
settings.py added accesstoken verify token
developers facebook page added callback url ngrok lin/webhook . with same verify token
when ever i send message to the bot on facebook getting this error in my terminal.
resolutions will be appreciated .
when get request on http://0bfd5c1a35fb.ngrok.io/webhook
i get multi value dict key error
error log:
[12/Jan/2021 19:52:03] "POST /webhook HTTP/1.1" 500 82026
Internal Server Error: /webhook
Traceback (most recent call last):
File "/home/najeeb/.local/lib/python3.5/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/najeeb/.local/lib/python3.5/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/najeeb/.local/lib/python3.5/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/najeeb/.local/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/najeeb/facebookbot/FacebookMessengerBot-master/bot/views.py", line 114, in web_hook
return chat_handler(request)
File "/home/najeeb/facebookbot/FacebookMessengerBot-master/bot/views.py", line 95, in chat_handler
data = json.loads(request.body)
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
The text was updated successfully, but these errors were encountered:
Any solutions newbie here . followed the documentation ended up here.
when ever i send message to the bot on facebook getting this error in my terminal.
resolutions will be appreciated .
when get request on http://0bfd5c1a35fb.ngrok.io/webhook
i get multi value dict key error
error log:
[12/Jan/2021 19:52:03] "POST /webhook HTTP/1.1" 500 82026
Internal Server Error: /webhook
Traceback (most recent call last):
File "/home/najeeb/.local/lib/python3.5/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/home/najeeb/.local/lib/python3.5/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/najeeb/.local/lib/python3.5/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/najeeb/.local/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "/home/najeeb/facebookbot/FacebookMessengerBot-master/bot/views.py", line 114, in web_hook
return chat_handler(request)
File "/home/najeeb/facebookbot/FacebookMessengerBot-master/bot/views.py", line 95, in chat_handler
data = json.loads(request.body)
File "/usr/lib/python3.5/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'
The text was updated successfully, but these errors were encountered: