Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad request error #42

Closed
Dmunch04 opened this issue Oct 13, 2020 · 1 comment
Closed

bad request error #42

Dmunch04 opened this issue Oct 13, 2020 · 1 comment

Comments

@Dmunch04
Copy link

i keep getting this error when trying to send a webhook embed

Traceback (most recent call last):
  File "C:\Users\Daniel\Documents\python\hypemonitor\test.py", line 99, in <module>
    supreme_monitor.main_loop()
  File "C:\Users\Daniel\Documents\python\hypemonitor\test.py", line 86, in main_loop
    self.send_restock_discord_webhook(temp)
  File "C:\Users\Daniel\Documents\python\hypemonitor\test.py", line 60, in send_restock_discord_webhook
    webhook.send(embed=embed)
  File "C:\Users\Daniel\AppData\Local\Programs\Python\Python38\lib\site-packages\dhooks\client.py", line 275, in send
    return self._request('POST', payload, file=file)
  File "C:\Users\Daniel\AppData\Local\Programs\Python\Python38\lib\site-packages\dhooks\client.py", line 388, in _request
    resp.raise_for_status()
  File "C:\Users\Daniel\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://discord.com/api/webhooks/...
@Dmunch04
Copy link
Author

okay nvm its because of the image im trying to give it. for some reason it wont work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant