Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internel server error /webhook #24

Open
najeeb2113 opened this issue Jan 12, 2021 · 0 comments
Open

internel server error /webhook #24

najeeb2113 opened this issue Jan 12, 2021 · 0 comments

Comments

@najeeb2113
Copy link

Any solutions newbie here . followed the documentation ended up here.

  1. downloaded module
  2. open as pycharm project
  3. done webhook setup
  4. settings.py added accesstoken verify token
  5. 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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant