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

Too many random errors/warnings #76

Closed
Yousha opened this issue Jul 16, 2018 · 3 comments
Closed

Too many random errors/warnings #76

Yousha opened this issue Jul 16, 2018 · 3 comments

Comments

@Yousha
Copy link

Yousha commented Jul 16, 2018

We don't use SSL:

1

[07/15/18 14:17:23] [plugins/discord-connector] invalid UTF-8 string: [json.exception.type_error.316] invalid UTF-8 byte at index 20: 0xD1
[07/15/18 17:18:40] [plugins/discord-connector] invalid UTF-8 string: [json.exception.type_error.316] invalid UTF-8 byte at index 12: 0xE4
[07/15/18 17:19:09] [plugins/discord-connector] invalid UTF-8 string: [json.exception.type_error.316] invalid UTF-8 byte at index 18: 0xD3

2

[07/15/18 13:44:18] [plugins/discord-connector] can't update guild member presence: guild id "offline" not cached

3

[07/15/18 13:48:10] [plugins/discord-connector] can't update guild member presence: guild id "dnd" not cached

4

[07/15/18 14:00:43] [plugins/discord-connector] Error while shutting down SSL on HTTP connection: short read (335544539)

5

[07/15/18 14:00:43] [plugins/discord-connector] Error while retrieving HTTP POST response from '/api/v6/channels/455663109861015562/messages': short read

6

[07/15/18 13:44:15] [plugins/discord-connector] can't update guild member presence: guild id "online" not cached

Plugin: 0.2.3
SAMP: 0.3.7-R2
OS: GNU/Linux 32bit

@maddinat0r
Copy link
Owner

1: You're passing an invalid UTF-8 string to DCC_SendChannelMessage. Discord uses UTF-8 exclusively, and thus expects UTF-8 encoded messages. You'll also get UTF-8 encoded messages back from Discord.
2, 3, 6: See #71.
4, 5: Those errors on connection close are mostly fixed by now. Expect them in the next release.

@Yousha
Copy link
Author

Yousha commented Jul 16, 2018

Thanks!
About #1, I think it's because some players are using special chars in their messages(non-ascii and non-utf)... is there a way to fix it?

@maddinat0r
Copy link
Owner

AFAIK Slice made an include with some string functions, some of them being UTF encode/decode functions.

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