title: Fixed my Micropub VueJS client sending bogus tweets
date: 2020-08-17 03:49:05
slug: fixed-my-micropub-vuejs-client-sending-bogus-tweets
status: published
display_format: entry
link: https://jj.isgeek.net/2020/08/fixed-my-micropub-vuejs-client-sending-bogus-tweets/
categories: indieweb
categories: micropub
syndication: https://twitter.com/jjdelc/status/1295205998576140289


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.