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

keep #1

Open
dark1s opened this issue May 19, 2018 · 2 comments
Open

keep #1

dark1s opened this issue May 19, 2018 · 2 comments

Comments

@dark1s
Copy link

dark1s commented May 19, 2018

I keep getting this when i try to run it:

The Rotting 13!
thread 'main' panicked at 'Connection failed: Json(Error("invalid type: string "3311", expected a u16 in [0, 9999] or parseable string", line: 0, column: 0))', libcore\result.rs:945:5
note: Run with RUST_BACKTRACE=1 for a backtrace.
error: process didn't exit successfully: target\debug\rotting13-bot.exe main (exit code: 101)

@Zizhou
Copy link

Zizhou commented Nov 13, 2018

I've also encountered this exact error and can't quite pinpoint the cause either. It's not just this project, though: trying to run the discord-rs example chat bot also yields the same result for me.

For what it's worth the "3311" in your error message is your bot's username discriminator number, so something in the process of creating a connection is not handling the number well(is it expecting an int or some other string?).

@Zizhou
Copy link

Zizhou commented Nov 16, 2018

For any future readers, using https://github.com/tinaun/discord-rs instead of either Bocom's fork or the original Spacemaniac one seems to fix this issue.

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

2 participants