shellhub icon indicating copy to clipboard operation
shellhub copied to clipboard

Cryptic message when a bad filter is passed

Open Seluj78 opened this issue 1 year ago • 0 comments

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

Seluj78 avatar Feb 07 '24 12:02 Seluj78