Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Book Requests error if label is the same #169

Open
h3mmy opened this issue Mar 5, 2024 · 0 comments
Open

Book Requests error if label is the same #169

h3mmy opened this issue Mar 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working triaged Issue has been triaged
Milestone

Comments

@h3mmy
Copy link
Owner

h3mmy commented Mar 5, 2024

Some book requests will error out if there are duplicate titles as options.

2024-03-05T14:28:04.985-0500	[31mERROR[0m	book_command	handlers/book_command.go:227	failed to respond to interaction	{"group": "common", "error": "HTTP 400 Bad Request, {\"message\": \"Invalid Form Body\", \"code\": 50035, \"errors\": {\"data\": {\"components\": {\"0\": {\"components\": {\"0\": {\"options\": {\"1\": {\"_errors\": [{\"code\": \"SELECT_COMPONENT_OPTION_VALUE_DUPLICATED\", \"message\": \"The specified option value is already used\"}]}}}}}}}}}", "command": "book"}

Should be a pretty straightforward fix. But there may be instances where a discriminator is important. Example different publishers can have different versions. Some versions might be censored for particular regions, etc.

The current selection from search is lacking and could be improved.

@h3mmy h3mmy added bug Something isn't working triaged Issue has been triaged labels Mar 5, 2024
@h3mmy h3mmy added this to the Book Requests milestone Mar 5, 2024
@h3mmy h3mmy self-assigned this Mar 5, 2024
@h3mmy h3mmy changed the title Book Requests error Book Requests error if label is the same Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged Issue has been triaged
Projects
Status: Todo
Development

No branches or pull requests

1 participant