AndBobsYourUncle / stable-diffusion-discord-bot

A Discord bot, written in Go, that interfaces with the Automatic 1111's API interface.
MIT License
128 stars 35 forks source link

What is the trick to making '/imagine_settings' work? #42

Open whasamatau opened 1 month ago

whasamatau commented 1 month ago

The bot is working great otherwise for me, /imagine works and the buttons to interact with the generated images all work, but I get a 'Application did not respond' error when I try to use the /imagine_settings command, and the below coreseponding error is displayed in the terminal output.

Any feedback or suggestions are welcome, but what little I have been able to find of 'HTTP 400 Bad Request' and "code": 50035, "errors" seem to indicate a piece of code being sent to discord api improperly or in such a way that it does not know how to respond such as a capital instead of lowercase, or an improperly formed attribute name.

Of course it is also possible I have not entered a URL correctly somewhere or a permission improperly set.

Error in output:

2024/06/06 22:30:55 Error responding to interaction: HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"data": {"components": {"0": {"components": {"0": {"options": {"0": {"emoji": {"name": {"_errors": [{"code": "BUTTON_COMPONENT_INVALID_EMOJI", "message": "Invalid emoji"}]}}}, "1": {"emoji": {"name": {"_errors": [{"code": "BUTTON_COMPONENT_INVALID_EMOJI", "message": "Invalid emoji"}]}}}}}}}}}}} 2024/06/07 09:34:42 Error responding to interaction: HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"data": {"components": {"0": {"components": {"0": {"options": {"0": {"emoji": {"name": {"_errors": [{"code": "BUTTON_COMPONENT_INVALID_EMOJI", "message": "Invalid emoji"}]}}}, "1": {"emoji": {"name": {"_errors": [{"code": "BUTTON_COMPONENT_INVALID_EMOJI", "message": "Invalid emoji"}]}}}}}}}}}}} 2024/06/07 09:41:12 Error responding to interaction: HTTP 400 Bad Request, {"message": "Invalid Form Body", "code": 50035, "errors": {"data": {"components": {"0": {"components": {"0": {"options": {"0": {"emoji": {"name": {"_errors": [{"code": "BUTTON_COMPONENT_INVALID_EMOJI", "message": "Invalid emoji"}]}}}, "1": {"emoji": {"name": {"_errors": [{"code": "BUTTON_COMPONENT_INVALID_EMOJI", "message": "Invalid emoji"}]}}}}}}}}}}}

Explorographer commented 3 weeks ago

Same issue here.