janboddez / share-on-mastodon

Easily share WordPress posts on Mastodon.
https://jan.boddez.net/wordpress/share-on-mastodon
GNU General Public License v3.0
39 stars 5 forks source link

Error status #50

Closed davehill47 closed 1 year ago

davehill47 commented 1 year ago

Sometimes a post will simply not generate a share to my Mastodon account, and the only way I am aware of that is if (a) the post never shows up on Masto, and (b) the URL for the Masto link doesn't show up in the metabox. But ... there's indication of why it didn't work -- error communicating with server, or message was inexplicable too long or what. If there is a failure, could we get some sort of indication of the cause in the metabox?

janboddez commented 1 year ago

Ah, that sounds like a good idea.

Whenever my posts don't go through, it's usually that they're too long, which I can live with, but depending on your server, it could be our timeout's too tight, etc.

Errors/server responses are logged to "debug.log," if debug logging's enabled (it probably shouldn't, on production servers), so if you're somewhat good with WordPress's tech side, you could give that a try.

But a more user-friendly status/error message is definitely something to consider.

janboddez commented 1 year ago

Added in c95915064291054d97f8718766280e9468a9e8e8. Published in v0.10.0.