Script Data Format Error

I’m working on a script for Scriptable that would allow users to download JSON data from Micro.blog’s Micropub on their latest 100 posts, look in the content of the posts for a certain query, and if it matches assign that post a particular category. But I keep getting the following error from Scriptable.

Error: The data couldn’t be read because it isn’t in the correct format.

Anyone want to take a look at the script and see if you can help me out?

var postReq = new Request(baseURL + "q?=source");

Could be that you switched the q & ? position.

1 Like

Nailed it. Thanks. I don’t know when that happened, because it was definitely right at some point. :man_facepalming:t2: Thanks!