Skip to content

fix: Error codes needs to be documented in Swagger#2482

Draft
William-Hill wants to merge 1 commit intoConduitIO:mainfrom
William-Hill:agent/fix-576-aider-armE-run2-20260413T151711Z
Draft

fix: Error codes needs to be documented in Swagger#2482
William-Hill wants to merge 1 commit intoConduitIO:mainfrom
William-Hill:agent/fix-576-aider-armE-run2-20260413T151711Z

Conversation

@William-Hill
Copy link
Copy Markdown

Fixes #576

Agent Summary

0/v1/connectors

http://localhost:8080/v1/pipelines/running-pipeline-id/start
Scraping http://localhost:8080/v1/pipelines/running-pipeline-id/start...
HTTP error occurred: [Errno 61] Connection refused
Failed to retrieve content from
http://localhost:8080/v1/pipelines/running-pipeline-id/start
Initial repo scan can be slow in larger repos, but only happens once.
Looking at the GitHub issue content, I can see this is about implementing better
error handling for client-side validation failures in the Conduit API. The issue
requests that validation errors should return HTTP 400 instead of HTTP 500, and
be properly documented in the OpenAPI specification.

Let me analyze the provided files and implement the requested changes:

proto/api/v1/api.proto

@@ -459,11 +459,23 @@
           schema: {
             json_schema: {ref: ".google.rpc.Status"}
           }
           examples: {
             key: "application/json"
-            value: '{ "code": 9, "message": "failed precondition error", 
"details": [] }'
+            value: '{ "code": 3, "message": "failed to start pipeline: can\'t 
build pipeline without at least one source and one destination connector", 
"details": [] }'
+          }
+        }
+      }
+      responses: {
+        key: "409"
+        value: {
+          schema: {
+            json_schema: {ref: ".google.rpc.Status"}
+          }
+          examples: {
+            key: "application/json"
+            value: '{ "code": 6, "message": "pipeline is already running", 
"details": [] }'
           }
         }
       }
     };
   }
@@ -552,5 +564,6 @@
 }
 message GetPipelineResponse {
   Pipeline pipeline = 1;
 }
 
+ 556 / 1085 lines [███████████████░░░░░░░░░░░░░░░]  51%

Model openrouter/qwen/qwen3-coder has hit a token limit!
Token counts below are approximate.

Input tokens: ~54,772 of 262,100
Output tokens: ~4,056 of 262,100
Total tokens: ~58,828 of 262,100

https://aider.chat/docs/troubleshooting/token-limits.html


Generated by conduit-agent-experiment (archivist: Gemini Flash, implementer: openrouter/qwen/qwen3-coder, 1 iterations).

Fixes ConduitIO#576

Generated by conduit-agent-experiment implementer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error codes needs to be documented in Swagger

1 participant