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

Cryptic message when a bad filter is passed #3523

Open
Seluj78 opened this issue Feb 7, 2024 · 0 comments
Open

Cryptic message when a bad filter is passed #3523

Seluj78 opened this issue Feb 7, 2024 · 0 comments
Labels
apiv2 Planned for API v2

Comments

@Seluj78
Copy link

Seluj78 commented Feb 7, 2024

Description

When calling the API, for example like so:

GET https://shellhub.example.com/api/devices?page=1&per_page=100&filter=W3sidHlwZSI6InByb3BlcnR5IiwicGFyYW1zIjp7Im5hbWUiOiJuYW1lIiwib3BlcmF0b3IiOiJjb250YWlucyIsInZhbHVlIjoidCJ9fV0

We get a 500 (see #3522 for why.)

A 500 isn't a good error message for a bad base64 decode and this message would need to be updated so the end user knows what's wrong

Edition

Community

Version

0.14.1

@heiytor heiytor added the apiv2 Planned for API v2 label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apiv2 Planned for API v2
Projects
None yet
Development

No branches or pull requests

2 participants