Better error upon sync when sync service is down or under maintenance

Joplin Cloud is down for maintenance. But the message that this is the case is buried in HTML error vomit:

Last error: Error: Error 502 Bad Gateway: <!DOCTYPE html>
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>Joplin Cloud is down for maintenance</title>
<style> body { font-family: Arial, sans-serif; background-color: #f4f4f4;
color: #333; text-align: center; padding: 50px; } h1 { color: #3e83ef;
font-size: 2.5e

This can probably be improved.

An aside: Also, maybe it is just me, but the first place I went to check on the status was Mastodon. And then I went to Joplin Cloud itself and there is a status page listed (cool) and you posted to Bluesky apparently (cool), but not Mastodon (Todd has a sad). Really only the status page is important, but … keep sending some love to us Mastodon folks! :slight_smile:

2 Likes

Sorry for the service being down earlier today - it should be fixed now and we're going to ensure that particular issue doesn't happen again.

For the status page, I'm not sure why it displayed like this for you. For me it was showing the expected maintenance page with a link to the status page. The Bluesky link is just for information as we don't automatically post things to it. If we do post something it would probably be to Mastodon too.

I got the same error yesterday. When accessing shared notes, a blank page with 503 error. When trying to share a link I got the same message buried in the HTML response.

That's strange. It means the server was still working well enough to serve the content, but not enough to set the content type to HTML. Not entirely sure why it'd do this.