You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Could you please consider returning a more descriptive error when the account making an API request is not authorised to perform it.
For example if you want to list the queues via rabbithole API and there is a typo in the password/the permissions on RabbitMQ are not set correctly the error one would get is: json: cannot unmarshal object into Go value of type []rabbithole.QueueInfo. This can be somewhat confusing.
Hi,
Could you please consider returning a more descriptive error when the account making an API request is not authorised to perform it.
For example if you want to list the queues via rabbithole API and there is a typo in the password/the permissions on RabbitMQ are not set correctly the error one would get is:
json: cannot unmarshal object into Go value of type []rabbithole.QueueInfo
. This can be somewhat confusing.When using curl the retrieved response is:
I would suggest returning an "unauthorised" error message if the query response code is 401 on every request.
I am happy to create the PR, but right now I am quite pressed for time, so it would have to wait.
The text was updated successfully, but these errors were encountered: