ApiOps CLI Publisher fails with empty urlTemplate error.
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
Start with the supplied operationInformation.json for notification-socket-v1/operations/onHandshake and trace how apiops publish processes its urlTemplate. Reproduce with the command and artifact described in the issue; done means the WebSocket handshake operation can be published with an empty urlTemplate.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Command that triggered the bug
npx apiops publish
Expected behavior
The publisher pipeline can publish the Websocket onHandshake API with a empty urlTemplate.
Actual behavior
Our Publisher pipeline is failing when running the apiops publish command with this error:
The Command from the pipeline:
npx apiops publish `
--resource-group '${{ parameters.resourceGroupName }}' `
--service-name '${{ parameters.apiManagementServiceName }}' `
--source '${{ parameters.artifactSource }}' `
--overrides '${{ parameters.configurationPath }}' `
--subscription-id $subscriptionId `
--commit-id '$(Build.SourceVersion)'
The Error:
ERROR PUT apioperation/notification-socket-v1/onHandshake: HTTP 400: {"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"urlTemplate","message":"'urlTemplate' should not be empty."}]}}
The API is a WebSocket API & the Socket is opening a handshake to the PubSub. We need an empty urlTemplate for it because we cant change it in azure.
This is the artifact file from it (apim-artifacts\apis\notification-socket-v1\operations\onHandshake\operationInformation.json):
{
"id": "/subscriptions/<>/resourceGroups/<>/providers/Microsoft.ApiManagement/service/<>/apis/notification-socket-v1/operations/onHandshake",
"type": "Microsoft.ApiManagement/service/apis/operations",
"name": "onHandshake",
"properties": {
"displayName": "onHandshake",
"method": "GET",
"urlTemplate": "",
"templateParameters": [],
"description": "WebSocket opening handshake",
"responses": [],
"policies": null,
"effectivePath": null
}
}
apiops CLI version
1.0.4
Environment details
- Image: ubuntu-latest
- NodeJs: 22.x
CI/CD environment
Azure DevOps
Is this bug blocking you?
Yes
- Vorherrschende Sprache
- TypeScript
- Sterne
- 29
- Forks
- 11
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 15
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
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 Azure/apiops-cli
-
type:question
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Azure/apiops-cli#277 ·
Maintainer antworten meist innerhalb von 1 Tag
-
stale type:documentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 94/100
Azure/apiops-cli#250 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Documentation P2 stale
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Azure/apiops-cli#24 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
type:feature
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
Azure/apiops-cli#316 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Named value transitive dependency not being extracted when used only in backend credentials headerOffentype:bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 66/100
Azure/apiops-cli#315 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in Azure/apiops-cli
Ähnliche Issues
-
[bug] diagnostics.dumpBody:Buffer 形态请求(透传 lane)跳过 dumps/ 落盘,仅留 raw/-unknown-Evtl. vergeben @ranxianglei hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
ranxianglei/billion-context#2421 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
platformatic/mcp#216 ·
Maintainer antworten meist innerhalb von 1 Tag
-
pending triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
nuxt/test-utils#1842 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
MoonshotAI/kimi-code#4146 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
farbenmeer/tapi#531 ·