conductor-oss / conductor-oss/conductor

APIs throwing 500 status when 4** is expected

Open
#172 7 comments 0 reactions 2 assignees Claimed by @jeffbulltech View on GitHub
bug help wanted
Dominant language
Java
Stars
32.2k
Forks
1k
Avg merge
2d 3h
Merged PRs (30d)
37

Description

**Describe the bug**
When trying to delete a non-existing workflow using `DELETE {{conductorBaseUrl}}/api/metadata/workflow/:name/:version` api
replies back with 500 status code.
```
{
"status": 500,
"message": "No such workflow definition: memes_maker version: 2",
"instance": "1a79daf01f84",
"retryable": false
}
```

**Details**
Conductor version: v3.19.0
Persistence implementation: Postgres
Queue implementation: Postgres
Lock: I guess redis

**To Reproduce**
Steps to reproduce the behavior:
1. Use API to delete non existing workflow
```
curl --location --request DELETE 'http://localhost8080/api/metadata/workflow/memes_maker/2'
```
2. See error

**Expected behavior**
Status code should be 404

**Additional context**
Same thing happens if we try to create existing workflow with existing version.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.