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

Data at the root level is invalid. #16

Open
roschler opened this issue Feb 23, 2016 · 0 comments
Open

Data at the root level is invalid. #16

roschler opened this issue Feb 23, 2016 · 0 comments

Comments

@roschler
Copy link

When I try using the Dictionary API, for which I do have a valid API key, I get an Exception after trying the dictionary request "@botName: define mouth". I put a try/except block around the WebSocket.OnMessage() handler and I see this:

Exception during WebSocket OnMessage() event: Data at the root level is invalid. Line 1, position 1.
Data received: {"type":"message","channel":"C","user":"U","text":"<@U>: define mouth","ts":"1456202184.000017","team":"T"}

Obviously the angle bracketed named elements are replacements for the actual values.

I'd be tempted to think it was something to do with the Dictionary API, but unless I'm wrong, this seems to be happening when the bot receives the define request and before it does anything with it.

What is the problem with the message?

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