You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
discord.log
I also asked around on the discord server, unfortunately they were unable to solve it.
I was also recommended to update to the Git version which did not work.
I tried to roll back to previous version but the problem carried over, i am now stuck.
Reproduction Steps
I updated discord.py from 1.x.x to 1.2
Expected Results
I expected the bot to work
Actual Results
The bot errors and collapses with every and any command call
(bot-env) ~/Documents/Discord Bot >>> python bot.py
We have logged in as Uniform#5344
The Bot is Online
Ignoring exception in command _help:
Traceback (most recent call last):
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/ext/commands/core.py", line 79, in wrapped
ret = await coro(*args, **kwargs)
File "bot.py", line 126, in _help
await ctx.send(f"Here you go!", embed=embed)
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/abc.py", line 824, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed, nonce=nonce)
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/http.py", line 222, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 411 Length Required (error code: 0):
<title>Error 411 (Length Required)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
411. That’s an error.
POST requests require a Content-length header. That’s all we know.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/ext/commands/bot.py", line 891, in invoke
await ctx.command.invoke(ctx)
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/ext/commands/core.py", line 728, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/ext/commands/core.py", line 88, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 411 Length Required (error code: 0):
<title>Error 411 (Length Required)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
411. That’s an error.
POST requests require a Content-length header. That’s all we know.
The logs seem to indicate an issue with cloudflare, not really one I can deal with.
The stuff pasted in here seems to a bit peculiar since Content-Length is done automatically by aiohttp. I don't think there's any particular issue with 3.5.4 since I use that version personally so it's not a dependency issue.
I suggest contacting support over this since there's nothing I can do about this.
Summary
discord.log
I also asked around on the discord server, unfortunately they were unable to solve it.
I was also recommended to update to the Git version which did not work.
I tried to roll back to previous version but the problem carried over, i am now stuck.
Reproduction Steps
I updated discord.py from 1.x.x to 1.2
Expected Results
I expected the bot to work
Actual Results
The bot errors and collapses with every and any command call
(bot-env) ~/Documents/Discord Bot >>> python bot.py
<title>Error 411 (Length Required)!!1</title> <style> *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px} </style>We have logged in as Uniform#5344
The Bot is Online
Ignoring exception in command _help:
Traceback (most recent call last):
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/ext/commands/core.py", line 79, in wrapped
ret = await coro(*args, **kwargs)
File "bot.py", line 126, in _help
await ctx.send(f"Here you go!", embed=embed)
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/abc.py", line 824, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed, nonce=nonce)
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/http.py", line 222, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 411 Length Required (error code: 0):
411. That’s an error.
POST requests require a
Content-length
header. That’s all we know.The above exception was the direct cause of the following exception:
Traceback (most recent call last):
<title>Error 411 (Length Required)!!1</title> <style> *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px} </style>File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/ext/commands/bot.py", line 891, in invoke
await ctx.command.invoke(ctx)
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/ext/commands/core.py", line 728, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/george/Documents/Discord Bot/bot-env/lib/python3.7/site-packages/discord/ext/commands/core.py", line 88, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 411 Length Required (error code: 0):
411. That’s an error.
POST requests require a
Content-length
header. That’s all we know.Checklist
System Information
The text was updated successfully, but these errors were encountered: