We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I encounter this problem when I try to follow messenger.py example. I try use Bottle and Flask. The Same problem occurs.
**o.__class__.__name__) TypeError: Object of type 'bytes' is not JSON serializable**
When I change this line 88 in pywit/examples/messenger.py code as below::-
data = { 'recipient': {'id': sender_id}, 'message': {'text': text.decode('utf-8')} }
The problem is resolved.
I use ngrok, virtualenv as my environment development.
The text was updated successfully, but these errors were encountered:
original was
data = { 'recipient': {'id': sender_id}, 'message': {'text': text} }
Sorry, something went wrong.
No branches or pull requests
I encounter this problem when I try to follow messenger.py example. I try use Bottle and Flask. The Same problem occurs.
When I change this line 88 in pywit/examples/messenger.py code as below::-
The problem is resolved.
I use ngrok, virtualenv as my environment development.
The text was updated successfully, but these errors were encountered: