Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

HttpRequestException: The SSL connection could not be established, see inner exception. #62

Open
ffrankozz opened this issue Feb 23, 2019 · 5 comments

Comments

@ffrankozz
Copy link

IOException: The handshake failed due to an unexpected packet format.
FrontEnd cannot establish connection with BackEnd api.

@DamianEdwards
Copy link
Contributor

Double-check the URL you've configured for the FrontEnd to talk to the BackEnd. HTTPS and HTTP are on separate ports and you must ensure you use the right port. Check that the BackEnd works over HTTPS and then ensure you're using that URL in the FrontEnd's appsettings.json file.

@manniealfaro
Copy link

manniealfaro commented Nov 3, 2019

I have the same issue and can't solve it. The configuration files are correct I think,

{
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:56009/",
      "sslPort": 44360
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "AASPNETCORE_HTTPS_PORT": "44360",
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "Backend": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "https://localhost:44360;http://localhost:56009"
    }
  }
}
{
  "ServiceUrl": "https://localhost:44360/",
  "Logging": {
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "AllowedHosts": "*"
}

@DamianEdwards
Copy link
Contributor

How are you launching the apps? Via Visual Studio or the cmd line? Can you confirm that the back-end is listening and serving the Swashbuckle (Swagger) UI via the configured HTTPS URL?

@BionStt
Copy link

BionStt commented Oct 14, 2021

for this challenge. i set my lauchsetting for frontend like this

"FrontEnd": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:55994", // didnt use https
"sslPort": 44374
}
}

@manniealfaro
Copy link

Hi,

Maybe it is no longer important but anyway. What was happening for me, the concatenation of the base address for the FrontEnd API service was not working. So I' was trying to access an address that did not exist.

It could be something similiar for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants