fix: handle empty API responses and double /api prefix in schedule script#100
Closed
tervezo-ai[bot] wants to merge 2 commits intomainfrom
Closed
fix: handle empty API responses and double /api prefix in schedule script#100tervezo-ai[bot] wants to merge 2 commits intomainfrom
tervezo-ai[bot] wants to merge 2 commits intomainfrom
Conversation
…ript - Strip whitespace from response body before JSON parsing to prevent JSONDecodeError on whitespace-only responses - Wrap json.loads in try/except for JSONDecodeError on success path, consistent with the error handler - Strip trailing /api from TERVEZO_API_URL to prevent double /api/api/v1/ prefix in URL construction Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Covers the two bug fixes (double /api prefix, empty response handling), dependency graph analysis, blocking deps extraction, and error handling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Author
tervezo-ai bot
pushed a commit
that referenced
this pull request
Mar 13, 2026
Reviewed and merged 6 PRs, closed 1 as superseded: - PR #103: fix schedule script URL prefix and non-JSON responses - PR #1: wasmtime 41.0.3 → 41.0.4 security bump - PR #99: Postgres database proxy integration tests (US-114) - PR #101: signal handling integration tests (US-110) - PR #104: threading model declaration host function (US-118) - PR #102: MySQL and Redis Wasm integration tests (US-117) - PR #100: closed as superseded by #103 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tervezo_api()to strip whitespace from response body before JSON parsing, preventingJSONDecodeErroron whitespace-only responsesjson.loadson the success path, consistent with the error handler/apifromTERVEZO_API_URLenv var, preventing double/api/api/v1/prefixContext
The script crashed with
JSONDecodeErrorwhen the Tervezo API returned empty or whitespace-only response bodies. Additionally, withTERVEZO_API_URL=https://app.tervezo.ai/api, the URL was incorrectly constructed as/api/api/v1/....Test plan
🤖 Generated with Claude Code
View implementation in Tervezo