The pypi command errored saying that the classifier embed value went over max length - this is because docutils has a LOT of language classifiers which causes it to hit this cap. Best option would probably be to create a menu for libraries that exceed this cap.
Traceback details (if applicable)
Exception in command 'pypi'
Traceback (most recent call last):
File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/ubuntu/.local/share/Red-DiscordBot/data/kreusada/cogs/CogManager/cogs/pypi/pypi.py", line 118, in pypi
await ctx.send(**kwargs)
File "/home/ubuntu/redenv/lib/python3.8/site-packages/redbot/core/commands/context.py", line 93, in send
return await super().send(content=content, **kwargs)
File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/abc.py", line 1045, in send
data = await state.http.send_files(channel.id, files=[file], allowed_mentions=allowed_mentions,
File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/http.py", line 254, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.4.value: Must be 1024 or fewer in length.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/ubuntu/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.fields.4.value: Must be 1024 or fewer in length.
Cog
PyPi
Details
The pypi command errored saying that the classifier embed value went over max length - this is because docutils has a LOT of language classifiers which causes it to hit this cap. Best option would probably be to create a menu for libraries that exceed this cap.
Traceback details (if applicable)