Python Runtime Fix for API
Budget: $10 – $30 USD
My Python script used to call an external API flawlessly, but a recent change caused a runtime error and the feature simply stopped working. The rest of the program is untouched; it’s just this API call that now raises the exception.
Here’s what I can share right away:
• The error is reproducible every run.
• It only appears during the external API request/response cycle—other parts of the logic execute fine.
• Nothing is wrong at compile time, so we’re exclusively chasing a runtime issue.
I will provide the full source file, the stack-trace, and the sample request payload. Your job is to track down the offending line(s), patch the code, and hand back a clean, commented solution. If a small refactor is needed (timeout handling, retry logic, updated endpoint URL, etc.) that’s perfectly acceptable as long as the original behaviour is restored.
Acceptance:
• Script executes end-to-end with no uncaught exceptions.
• API response is parsed and stored exactly as before.
• A short note explaining what went wrong and how you fixed it.
If this sounds straightforward to you and you’re comfortable with Python networking libraries (requests, httpx, or similar), I’d love to get this wrapped up quickly.
Here’s what I can share right away:
• The error is reproducible every run.
• It only appears during the external API request/response cycle—other parts of the logic execute fine.
• Nothing is wrong at compile time, so we’re exclusively chasing a runtime issue.
I will provide the full source file, the stack-trace, and the sample request payload. Your job is to track down the offending line(s), patch the code, and hand back a clean, commented solution. If a small refactor is needed (timeout handling, retry logic, updated endpoint URL, etc.) that’s perfectly acceptable as long as the original behaviour is restored.
Acceptance:
• Script executes end-to-end with no uncaught exceptions.
• API response is parsed and stored exactly as before.
• A short note explaining what went wrong and how you fixed it.
If this sounds straightforward to you and you’re comfortable with Python networking libraries (requests, httpx, or similar), I’d love to get this wrapped up quickly.