ConduitIO / ConduitIO/conduit

Error codes needs to be documented in Swagger

Open
#576 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
610
Forks
63
Avg merge
12h 28m
Merged PRs (30d)
57

Description

All errors are handled as 500
For example: 
• Request /v1/pipelines/{{pipeline_id}}/start is returned code 500 after trying start the pipeline which don't have connectors or have only 1 connector
message: "failed to start pipeline: could not build nodes for pipeline {id} can't build pipeline without any source connectors"
• Request /v1/connectors is returned code 500 after trying create connector with an invalid configuration
"message": "failed to create connector: could not init connector: invalid plugin config: operation error S3: HeadBucket, serialization failed: serialization failed: input member Bucket must not be empty"

Maybe it could be a 400 code?
And these error messages are not documented in [Swagger](http://localhost:8080/openapi/#/PipelineService/PipelineService_StartPipeline).

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.