Help! await req.load() not working anymore

I can no longer get the html by loading a request. This is the error I get:

Error on line 10:30: TypeError: html.indexOf is not a function. (In ‘html.indexOf(’“edge_owner_to_timeline_media”:{“count”:’)’, ‘html.indexOf’ is undefined)

Does anyone know how to get the html some other way?

From the latest Scriptable release notes:

Changed API: Request.load() now returns Data instead of a string. Use Request.loadString() instead.

Try using req.loadString() instead of req.load().

2 Likes

Thank you! I was looking for the change on the release notes but couldn’t find it. It works like a charm now!

2 Likes