question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jsk sync is broken

See original GitHub issue

Summary

jsk sync is broken, gives an error

Reproduction steps

try to sync something

Expected results

to sync my bot tree

Actual results

gives an error

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 191, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/ubuntu/.local/lib/python3.9/site-packages/jishaku/features/management.py", line 203, in jsk_sync
    synced = await self.bot.tree.sync()
  File "/home/ubuntu/.local/lib/python3.9/site-packages/discord/app_commands/tree.py", line 923, in sync
    data = await self._http.bulk_upsert_global_commands(self.client.application_id, payload=payload)
  File "/home/ubuntu/.local/lib/python3.9/site-packages/discord/http.py", line 501, in request
    raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In 64.description: Must be between 1 and 100 in length.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.9/site-packages/jishaku/features/invocation.py", line 146, in jsk_debug
    await alt_ctx.command.invoke(alt_ctx)
  File "/home/ubuntu/.local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 1548, in invoke
    await ctx.invoked_subcommand.invoke(ctx)
  File "/home/ubuntu/.local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 939, in invoke
    await injected(*ctx.args, **ctx.kwargs)  # type: ignore
  File "/home/ubuntu/.local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 200, 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 64.description: Must be between 1 and 100 in length.

Checklist

  • I have updated discord.py and jishaku to the latest available versions and have confirmed that this issue is still present
  • 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

System information

Name: discord.py Version: 2.0.0a4147+g1d97a353 Summary: A Python wrapper for the Discord API Home-page: https://github.com/Rapptz/discord.py Author: Rapptz Author-email: None License: MIT Location: /home/ubuntu/.local/lib/python3.9/site-packages Requires: aiohttp Required-by: wavelink, topggpy, discord-ext-menus, discord-argparse, dblpy, buttons [status] Return code 0

<html> <body>

Name: jishaku

4 | Version: 2.4.0a403+g8bc4ed4.master 5 | Summary: A discord.py extension including useful tools for bot development and debugging. 6 | Home-page: https://github.com/Gorialis/jishaku 7 | Author: Devon (Gorialis) R 8 | Author-email: None 9 | License: MIT 10 | Location: /home/ubuntu/.local/lib/python3.9/site-packages 11 | Requires: typing-extensions, click, importlib-metadata, import-expression, braceexpand 12 | Required-by:

</body> </html>

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
RGBCubecommented, Apr 22, 2022

Im not sure how this could be an issue with my commands, i have error handling for them and normally when i reload a cog it will say whats wrong with it, image and as you can see, theres no issues with my cogs

reloading cogs dont sync commands automatically

0reactions
Motzumotocommented, Apr 30, 2022

Did the new diagnostic help?

I was unable to test as i was actively working on fixing the issue before I read this issue, but I will definitely let you know if the new diagnostic helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's new? — jishaku 2.5.1 documentation
Some fixes for changes that broke existing fork support ... jsk sync has also been improved, now including a diagnostic for commands that...
Read more >
Gorialis/jishaku: A debugging and testing cog for ... - GitHub
The results from the commands you pass in are returned through a paginator interface live as the command runs. If you need to...
Read more >
Randomizing texture coordinates has no effect on ...
But the displacement node seems to apply the same coordinates to all instanced objects and is out of sync with the PBR texture....
Read more >
Preparing for Kinetic Sync 2018-04-24 - ROS Discourse
We have over 200 new and updated packages for Kinetic. After rolling back one release which was causing regressions on Jessie, ...
Read more >
Anyone actually managed to update Sync 1.1 - Ford Focus Club
Hi everyone, I have been trying to update Sync 1.1 on a 2014 Ford Focus ... a file that didn't exist, corrected it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found