-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APIM Dev Tier Returns 401 to VS Code Debug Session #318
Comments
It might be better to file an issue on the API Management extension https://github.com/Microsoft/vscode-apimanagement |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
APIM Dev Tier Returns 401 to VS Code Debug Session:
It should allow VS Code to connect to a debug session on APIM API Operation
From client: launch({
"type": "apim-policy",
"request": "launch",
"name": "Attach to APIM",
"stopOnEntry": true,
"gatewayAddress": "wss://************/debug-0123456789abcdef",
"managementAddress": "https://management.azure.com//subscriptions/*************/resourceGroups/pic_apiman_dev_rg***/providers/microsoft.apimanagement/service/dev09-apim01-apiman",
"subscriptionId": "2e260c77-daba-4540-9ae4-019a33db3331",
"operationData": "GET https:///agencyapibridge/api/account HTTP/1.1\nOcp-Apim-Subscription-Key: ***\nOcp-Apim-Debug: **********\nOcp-Apim-Trace: true\n",
"fileName": "-agencyportalbridge-get-api-account.http",
"__sessionId": "b87f5e7c-5726-47da-84f2-1463aa6158dc"
})
To client: {
"seq": 0,
"type": "event",
"event": "output",
"body": {
"category": "stderr",
"output": "Can't connect to gateway: Unexpected server response: 401."
}
}
Can't connect to gateway: Unexpected server response: 401.
To client: {
"seq": 0,
"type": "event",
"event": "terminated"
}
From client: disconnect({
"restart": false
})
To client: {
"seq": 0,
"type": "response",
"request_seq": 3,
"command": "disconnect",
"success": true
}
Does this occur consistently? Yes
Repro steps:
Version: 0.11.4
OS: win32
OS Release: 10.0.19042
Product: Visual Studio Code
Product Version: 1.78.2
Language: en
The text was updated successfully, but these errors were encountered: