Open mike-geiger opened 2 years ago
Hi @mike-geiger, the ASPNETCORE_URLS value is missing a ":". Can you please update it to "http://+:5014". Could you also update the port value to one that your app actually listens on and try again? You also mention that you are able to launch with the original configuration. What changes have you made to the original configuration since then?
@pragyamehta sorry, that was my own typo, I should have just copy pasted to begin with. here is the full launch.json after running running the bridge configuration. the original still works, the generated "with Kubernetes" one gives the error
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console) with Kubernetes",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "bridge-to-kubernetes.compound",
"program": "${workspaceFolder}/src/API/bin/Debug/net5.0/API.dll",
"args": [],
"cwd": "${workspaceFolder}/src/API/",
"stopAtEntry": false,
"env": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "http://+:5014"
}
},
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/API/bin/Debug/net5.0/API.dll",
"args": [],
"cwd": "${workspaceFolder}/src/API/",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:5014"
}
}
]
}
I used the configure task to copy settings from a working "Run" launch configuration. When I start debugging, Bridge connects to my cluster, the project builds, but when it launches i get an exception that generates two log messages (below).
Especially odd is that, even though my original configuration had https, the configuration generated by bridge has
"ASPNETCORE_URLS": "http://+5014"
, so I'm not even sure why Kestrel is looking for the certificate. I'm not getting environment variables from the service. I'm still able to launch the original configuration with and without https urls, and bridge is working with an "Attach" launch configuration.Any Ideas? I'd like to have an F5 experience ;-)
and