Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug]: "500 tagList.map is not a function" if empty string sent instead of tagList #803

Closed
concise-studio opened this issue Nov 9, 2021 · 2 comments
Assignees
Labels

Comments

@concise-studio
Copy link

concise-studio commented Nov 9, 2021

Relevant scope

Deployed demo

Description

If user did no fill the field 'tags', it is possible that frontend will send empty string in the 'tagList' parameter. In my opinion, if empty string is not allowed, API should return validation error (422), not internal error (500).

@geromegrignon
Copy link
Contributor

Hey @concise-studio, by creating the current API, I didn't include this 'feature' (tracked by #410).
I'll deploy a bug fix to match the previous API not to break existing implementations.

@geromegrignon
Copy link
Contributor

It should be fixed by now.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants