lean cloud live deploy --notify-webhooks fails when the address is a URL
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 48/100
Rechercherichtung
Start at lean/commands/cloud/live/deploy.py where --notify-webhooks values are split on colons and headers on =; parse only trailing NAME=VALUE segments as headers, keep the remaining prefix as the address, and split each header on the first =. Add test cases with real URLs (with and without headers, plus a header value containing =) alongside the existing customAddress:header1=value1 tests, and run the test suite for the deploy command. Done means --notify-webhooks "https://example.com/hook:Authorization=abc" parses cleanly with no IndexError. Note: PR #672 already targets this issue, so check its state before claiming the work.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Expected Behavior
--notify-webhooks accepts a webhook URL, following the documented url:HEADER_1=VALUE_1:HEADER_2=VALUE_2 format, for example --notify-webhooks "https://example.com/hook:Authorization=abc".
Actual Behavior
The value is split on every colon, so the https: scheme (and a port, if any) is cut off the address and the rest of the URL is treated as a header. Any real URL ends with:
IndexError: list index out of range
at lean/commands/cloud/live/deploy.py (header.split("=")[1]). The same happens with no headers at all (https://example.com/hook). A header value containing = is truncated: Authorization=Basic dXNlcjpwYXNz== is sent as Basic dXNlcjpwYXNz.
The existing tests only use customAddress:header1=value1, which has no colon in the address.
Potential Solution
Treat only the trailing NAME=VALUE parts as headers, keep the rest as the address, and split each header on the first =. I can open a PR with the fix and tests.
Reproducing the Problem
lean cloud live deploy "My Project" --brokerage "Paper Trading" --node live --auto-restart yes \
--notify-order-events yes --notify-insights yes --data-provider-live QuantConnect \
--notify-webhooks "https://example.com/hook:Authorization=abc"
System Information
lean-cli master at 20e58aa, Linux.
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
masterbranch - I have confirmed that this is not a duplicate issue by searching issues
- Vorherrschende Sprache
- Python
- Sterne
- 327
- Forks
- 170
- Ø Merge
- 8 T. 14 Std.
- Gemergte PRs (30 T.)
- 7
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus QuantConnect/lean-cli
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
QuantConnect/lean-cli#661 · 1 Kommentar ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
QuantConnect/lean-cli#619 ·
-
Implements AutocompleteEvtl. wieder frei @shreejaykurhade hat das vor 202 Tagen übernommen, und es ist kein Pull Request offen. Offenfeature
QuantConnect/lean-cli#602 · 6 Kommentare · 3 Reaktionen · 1 zugewiesene Person ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
QuantConnect/lean-cli#579 ·
-
bug feature
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
QuantConnect/lean-cli#574 · 1 Kommentar · 1 Reaktion ·
Alle Issues in QuantConnect/lean-cli
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
common-workflow-language/cwl-utils#477 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add dependabotOffenfeat
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
open-nudge/opentemplate#204 ·
Maintainer antworten meist innerhalb von 1 Tag
-
github-stale-ci-pr-closer: KV state is double-wrapped, never persists, and hits the depth-32 limitEvtl. vergeben @VascoSch92 hat das heute übernommen. Offenpriority:medium ready-for-dev
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
OpenHands/extensions#781 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
curriculum documentation quality
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
githubnext/gh-aw-workshop#4638 ·
Maintainer antworten meist innerhalb von 1 Tag