Traceback (most recent call last):
File "\discord\client.py", line 507, in _run_event
await coro(*args, **kwargs)
File "discord-bot\bot.py", line 62, in on_relationship_add
await relation.accept()
File "discord-bot\venv\lib\site-packages\discord\relationship.py", line 298, in accept
await self._state.http.add_relationship(self.user.id, action=RelationshipAction.accept_request)
File "discord-bot\venv\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.6-final
discord.py-self v2.0.0-final
aiohttp v3.8.4
system info: Windows 10 10.0.22621
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).
Additional Information
I went through https://github.com/dolfies/discord.py-self/issues/414, but I am using a captcha solver. But the captcha solver is not being triggered - there are no prints being triggered from the captcha handler.
Summary
Friendship requests cannot be accepted. It ends up erroring out.
Reproduction Steps
Code
Expected Results
It's supposed to accept the friend request.
Actual Results
I get this error:
Traceback (most recent call last): File "\discord\client.py", line 507, in _run_event await coro(*args, **kwargs) File "discord-bot\bot.py", line 62, in on_relationship_add await relation.accept() File "discord-bot\venv\lib\site-packages\discord\relationship.py", line 298, in accept await self._state.http.add_relationship(self.user.id, action=RelationshipAction.accept_request) File "discord-bot\venv\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
Checklist
Additional Information
I went through https://github.com/dolfies/discord.py-self/issues/414, but I am using a captcha solver. But the captcha solver is not being triggered - there are no prints being triggered from the captcha handler.
I'm using @JamesTesting888's HCaptcha handler since it seems to be working for him from https://github.com/dolfies/discord.py-self/issues/485, so I don't think the issue is in the handler itself?