Create Source returns status code 201 instead of 200
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with api_client.py line 229 to trace how the response status is mapped, then inspect sources_api.py around line 348 and reproduce Create Source returning 201. Update the underlying API documentation or generated source so status 201 resolves to the CreateSource response instead of None, and verify the SDK preserves the response.
Written by the indexing model from the issue text.
Description
I am running on the latest package version, in the api_client.py, line 229, the code is looking up a type mapping based on a status code. As it can not resolve it, it falls back to None, overwriting the actual response. A hotfix is to change line 348 in sources_api.py to: '201': "CreateSource..."
As the code is auto-generated, I assume that the underlying API documentation needs to be updated. I have attached screenshots for reference.
- Dominant language
- Python
- Stars
- 2
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from segmentio/public-api-sdk-python
-
Add EU url Open
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
segmentio/public-api-sdk-python#3 · 2 comments · 3 reactions ·
All issues in segmentio/public-api-sdk-python
Similar issues
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100