You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
Hey so I was tinkering around with the library and found out the following:
If you try to delete a post right after publishing (like the example does) it works fine, but whenever you use getPostIDfromURL to get the postID and use that, then it doesn't work and it returns a 500 error.
The text was updated successfully, but these errors were encountered:
Can you post the code you use? getPostIDfromURL isn't even async
The issue is not in getPostIDfromURL, it is originated from the delete method.
The code is part of a bigger context but it is as follows:
constthreadsClient=// assume this is an instance of threads.constpostID=threadsClient.getPostIDfromURL('placeholder');// the code returns a valid post id, no issue hereawaitthreadsClient.delete(postID);// the code throws the 500 here at this request
The request sent is as follows: POST /api/v1/media/1188739602403146218596443867793401045807132630629409586704810983867956/delete/ HTTP/1.1
The web version of Threads is out by the way, there it sends a request to https://www.threads.net/api/graphql
Hey so I was tinkering around with the library and found out the following:
If you try to delete a post right after publishing (like the example does) it works fine, but whenever you use
getPostIDfromURL
to get the postID and use that, then it doesn't work and it returns a 500 error.The text was updated successfully, but these errors were encountered: