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

unknown error (status 500): {resp:0x40007b6000} #41

Closed
Rchtr opened this issue Jul 18, 2021 · 6 comments
Closed

unknown error (status 500): {resp:0x40007b6000} #41

Rchtr opened this issue Jul 18, 2021 · 6 comments

Comments

@Rchtr
Copy link

Rchtr commented Jul 18, 2021

Hello,
i get this error unknown error (status 500): {resp:0x40007b6000} when i run any of the following commands:

echo "✓" | gotify push
echo '✓' | gotify push
echo ✓ | gotify push

What is the right syntax to push a message which includes the symbol above?

@jmattheis
Copy link
Member

This should work, does gotify/server log any error?

@Rchtr
Copy link
Author

Rchtr commented Jul 18, 2021

I could find this error in the log:
Error 1366: Incorrect string value: '\xE2\x9C\x93\x0A' for column 'gotify'.'messages'.'message' at row 1 ,

@jmattheis
Copy link
Member

Please add your gotify configuration to this issue, this looks like the database doesn't accept a row with this character. If you're using mysql try the solution in this comment gotify/server#408 (comment)

@Rchtr
Copy link
Author

Rchtr commented Jul 19, 2021

I've changed manually the database collation of the table messages from latin1_swedish_ci to utf8_unicode_ci. Now its works. Thank you. 👍
Gotify is connected to MariaDB via GOTIFY_DATABASE_CONNECTION: user:password@tcp(mysql:3306)/gotify?charset=utf8&parseTime=True&loc=Local.
Why does gotify/server create all tables with collation latin1_swedish_ci?

@jmattheis
Copy link
Member

Gotify itself doesn't define any collation, so the default MySQL collation will be used.

@Rchtr
Copy link
Author

Rchtr commented Jul 25, 2021

So I think that issue can be closed. Thank you!

@Rchtr Rchtr closed this as completed Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants