Plugins messages not displayed upon refresh of the message page, nor can they be deleted #653
Open
3 of 11 tasks
Labels
a:bug
Something isn't working
Can the issue be reproduced with the latest available release? (y/n)
Yes
Which one is the environment gotify server is running in?
Docker startup command or config file here (please mask sensitive information)
Do you have an reverse proxy installed in front of gotify server? (Please select None if the problem can be reproduced without the presense of a reverse proxy)
On which client do you experience problems? (Select as many as you can see)
What did you do?
Yesterday I was trying to write a simple plugin for Gotify and I noticed a weird behaviour. Take the following plugin code:
The code
I compiled it and ran it as per the instructions of the plugin template repo, it compiles and loads properly, so far so good. However when it starts to send messages the messages show up on the web ui, but for instance if I try to delete them it fails, and I see this error in the logs:
Reloading the messages page also shows none of the messages sent by the plugin.
I tested with a standard app, and the messages sent via apps do survive a refresh and behave as i would expect.
This is very odd because if I inspect the database itself the messages are there:
What did you expect to see?
I expect to see the plugin messages show up on the message page even after a refresh
What did you see instead? (Include screenshots, android logcat/request dumps if possible)
The messages disappeared after a page restart, and I cannot seem to delete them from the UI when they show up (immediately after a publish)
The text was updated successfully, but these errors were encountered: