Jj Del Carpio

Jj's web stream

Fixed my Micropub VueJS client sending bogus tweets

If you were seeing those empty tweets that happened following some posts. This is what happened.

My blog is an #indieweb engine where posts are sent via #micropub. I have a client called Grumble, written in VueJS.

This client, has support to write while offline and stores those posts using indexDB as a message queue.

The bug was that this post in particular had no body element causing it to never be able to get sent leaving it stuck on the queue. So on every post, it would try to send again. Tweet, then fail to post on the blog and have this empty tweet happen every time I posted from the web client on my phone that has this msg on the queue.

The screen for offline posts suffered from the same bug not displaying this post so it looked empty.

Had to debug via USB and from chrome Dev tools to see the stuck message so I could update the client code around this bug and be able to clear the stick message.

Shared on:

Jj Avatar of Jj

Reply or react to this post via Webmentions or reply or like to the Mastodon, Twitter or Instagram post.