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
rbastiaans-tc
changed the title
volume API returns invalid/no JSON if volume doesn't exist
CSI volume API returns invalid/no JSON if volume doesn't exist
May 18, 2022
Hi @rbastiaans-tc! This is an unfortunate misfeature across the entire Nomad HTTP API. See also #8236. We'll need to break backwards compatibility to fix it, so we need to go thru a design effort and then a deprecation period first. I'm going to mark this issue for roadmapping until we have an issue open to go thru that API change work.
Nomad version
Nomad v1.3.0 (52e95d64113e01be05d585d8b4c07f6f19efebbc)
Operating system and Environment details
Debian 10 Buster
Issue
The Nomad API for: Read Volume: returns no/invalid JSON for volumes that don't exist
The docs state that it produces:
application/json
Reproduction steps
Expected Result
Some valid JSON data with the error, something like this:
{ 'status': 'volume not found' }
Actual Result
Regular text status response:
volume not found
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: