If i try to friend a certain user [Which somehow got unfriended randomly.] it says Unable to send friend request.
If i try to visit the url causing an error, it gives me this:
The URL says MethodNotAllowed because the browser by default sends a GET request and the API you are directly visiting is expecting a POST request, hence the āmethod not allowedā as GET is not allowed
That OPTIONS request is sent to fetch a CSRF token required for a successful POST one. OPTIONS requests are not state-changing, and their only purpose is to get configuration details about the server or a specific endpoint, typically used as preflight requests made to check if a subsequent request will succeed.
Iām not sure that the error you claim is the issue is actually the relevant error.
If you go to the profile of the person you were trying to add, then press F12, click the Network tab, then hit Add Friend, what is the request that gets shown in the Network tab?
As a little note, by visiting the page in your browser; the webpage defaults to sending a GET request and showing you that response, not the response of the POST request. As such, most likely the āmethod not allowedā error isnāt the error blocking your friend request from being sent but rather a different error; ideally you should follow the steps @SeargentAUS posted above to obtain a more accurate error summary.
Then it appears that the issue is rather that the engine believes you are still friended to the user (or perhaps it just means that you already sent a friend request since there seemingly isnāt a documented error code for that, not sure about that though).
Are you absolutely sure that the user unfriended you and it isnāt another request relating to checking friendship failing?
The last friend request i sent to the user was around 2023, now i canāt send new ones to the user due to the error. The request got accepted back in 2023 so iām sure thereās no other request.