Skip to content

bug: accept urls in --notify-webhooks - #672

Open
Amadeus-22 wants to merge 1 commit into
QuantConnect:masterfrom
Amadeus-22:bug-671-notify-webhooks-url
Open

Amadeus-22 wants to merge 1 commit into
QuantConnect:masterfrom
Amadeus-22:bug-671-notify-webhooks-url

Conversation

@Amadeus-22

Copy link
Copy Markdown

Closes #671.

  • lean cloud live deploy --notify-webhooks split the value on every colon. With a real URL the scheme (and port) was cut off the address and the remainder was parsed as a header, raising IndexError: list index out of range. A header value containing = was truncated.
  • The parsing moves to _parse_webhook_config: only the trailing NAME=VALUE parts are headers, the rest is the address, and each header is split on its first =. Values that worked before parse the same way.
  • test_cloud_live_deploy_with_notifications gets three URL cases (no headers, port plus query string, header value with =). They fail on master and pass with the fix; the expected values are now written out instead of being re-parsed with the same logic as the command.
  • pytest tests/commands/cloud/live/test_cloud_live_commands.py passes (68 tests, Python 3.12) and python static_analysis.py is clean.

🤖 Generated with Claude Code

The webhook configuration was split on every colon, so the scheme and port
of a URL were cut off the address and the rest was read as a header, which
raised IndexError for any real URL. Only the trailing NAME=VALUE parts are
headers now, and a header is split on its first '=' so values containing
'=' are kept whole.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

lean cloud live deploy --notify-webhooks fails when the address is a URL

1 participant