Skip to content

Improve curl error handling in Arcane deployment workflow#23

Merged
nsheaps merged 1 commit intomainfrom
claude/fix-arcane-deploy-ci-FAlTS
Mar 19, 2026
Merged

Improve curl error handling in Arcane deployment workflow#23
nsheaps merged 1 commit intomainfrom
claude/fix-arcane-deploy-ci-FAlTS

Conversation

@nsheaps
Copy link
Copy Markdown
Owner

@nsheaps nsheaps commented Mar 19, 2026

Summary

Updated curl command flags in the Arcane deployment workflow to provide better error reporting and debugging capabilities.

Key Changes

  • Replaced -f flag with --fail-with-body to capture error response bodies when HTTP errors occur
  • Changed -s (silent) to -sS to show errors while suppressing progress meter
  • Removed output redirection (> /dev/null) from the PUT request to allow response visibility

Implementation Details

These changes improve the observability of the deployment process:

  • The --fail-with-body flag ensures that when an API request fails, the error response body is still printed, making it easier to diagnose issues
  • The -sS combination maintains clean output during successful requests while still displaying any curl errors
  • Removing the output redirection allows the API response to be visible in logs, which can be helpful for debugging and verification purposes

These modifications align with best practices for production deployment scripts where visibility into failures is critical for troubleshooting.

https://claude.ai/code/session_014nM69UndgbHnYLosVDhNvL

Replace curl -sf (fail silently) with -sS --fail-with-body so that
HTTP error responses from the Arcane API are printed to the log instead
of silently returning exit code 22 with no diagnostic output.

https://claude.ai/code/session_014nM69UndgbHnYLosVDhNvL
@nsheaps nsheaps marked this pull request as ready for review March 19, 2026 20:46
@nsheaps nsheaps merged commit 9cf0c81 into main Mar 19, 2026
1 check passed
@nsheaps nsheaps deleted the claude/fix-arcane-deploy-ci-FAlTS branch March 19, 2026 20:47
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.

2 participants