Currently, the mechanic allowing multiple attempts to send a webhook mechanic has a bug, that overwrites the request data with the response, rendering every attempt latter than the first one to send an incorrect request.
For example, sending executing multiple webhooks executions in short succession, triggering ratelimiting asynchronous sleep period.
We are supposed to still send the same request we tried to send prior to retrying.
Server response is fed back. This can cause multitude of errors, i.e 'Cannot send an empty message' due to last response from 'X-Ratelimit-Remaining' being empty prior to continuing.
I have searched the open issues for duplicates.
I have shown the entire traceback, if possible.
I have removed my token from display, if visible.
discord.py version: latest commit 792b318 (running from source)
Python version: Python 3.6
Operating system: Windows 8.1
The text was updated successfully, but these errors were encountered:
I didn't find time to make a PR from PC but the fix is a simple manner of renaming data to response inside the loop so the original data that we send through the webhook doesn't get overwritten when retrying.