This error occurs and the request is not accepted.
[2023-12-04 03:20:51] [ERROR ] discord.client: Ignoring exception in on_relationship_add
Traceback (most recent call last):
File "C:\Users\####\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 507, in _run_event
await coro(*args, **kwargs)
File "E:\bot.py", line 27, in on_relationship_add
await after.accept();
File "C:\Users\####\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\relationship.py", line 298, in accept
await self._state.http.add_relationship(self.user.id, action=RelationshipAction.accept_request)
File "C:\Users\####\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\http.py", line 838, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In miscallenous: Expected "Content-Type" header to be one of {'application/json'}.
System Information
Python v3.10.0-final
discord.py-self v2.0.0-final
aiohttp v3.9.0
system info: Windows 10 10.0.19045
Checklist
[X] I have searched the open issues for duplicates.
[X] I have shared the entire traceback.
[X] I am using a user token (and it isn't visible in the code).
Summary
Accepting friend requests is broken.
Reproduction Steps
Code
Expected Results
The friend request is accepted.
Actual Results
This error occurs and the request is not accepted.
System Information
Checklist
Additional Information
No response