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

Filter color fails if it the color is uppercased #130

Closed
hjemmel opened this issue Jun 13, 2020 · 1 comment · Fixed by #131
Closed

Filter color fails if it the color is uppercased #130

hjemmel opened this issue Jun 13, 2020 · 1 comment · Fixed by #131

Comments

@hjemmel
Copy link

hjemmel commented Jun 13, 2020

When I added color like #41236D that is supported by Gmail API I get the following error:

Error: creating labels: creating label "AppSignal/Kickback": googleapi: Error 400: Label color #41236D is not on the allowed color palette, invalidArgument

If I do the same with the but lowercasing the color, the gmailctl apply command works perfectly.

Maybe it would be a good idea to lowercase the colors before send them to the API

@mbrt
Copy link
Owner

mbrt commented Jun 14, 2020

Gmail APIs accept only lowercase hex strings and I'm reluctant to relax the restrictions, unless there's a good reason. This is to avoid confusion and potential incompatibilities in the case Gmail changes something.

What I can do however is returning a better error message. You found the docs by yourself but it's not necessarily obvious to everyone, so I'm going to go ahead and do that.

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

Successfully merging a pull request may close this issue.

2 participants