Unable to send friend request with MethodNotAllowed error

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 is: https://friends.roblox.com/v1/users/221018361/request-friendship

Browser: Opera GX 114 on Windows 11 (Adblocker disabled, Tracker blocker disabled [because opera flagged the getprofile api])

Expected behavior

Friend request to be sent and the error to not appear.

A private message is associated with this bug report

1 Like

Wouldā€™ve thought this was related to the verification thing on friend request send but this seems rather suspicious, maybe related to blocking?

Yeah, with that i agree, i still have one of their alts friended and iā€™m seeing if they were hacked or what happened.

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

3 Likes

Thanks for the report! Weā€™ll follow up when we have an update for you.

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.

2 Likes

The api is making a POST request in my case.

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.

It gave me this:

{
    "errors": [
        {
            "code": 5,
            "message": "The target user is already a friend.",
            "userFacingMessage": "Already exists."
        }
    ]
}

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.

The user iā€™m trying to re-friend can see themselves in my friend list, but i canā€™t see them in mine.

Had to unfriend a user. Maybe it corrected the data only when it had to.