Starts in:
1 DAY
23 HRS
25 MIN
23 SEC
Starts in:
1 D
23 H
25 M
23 S
Open Closed

Abp commertial azure deploy #3107


User avatar
0
jhsanc created
  • ABP Framework version: v5.2.1
  • UI type: Blazor Wasm
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: After deploy a abp blazor solution to Azure, the Blazor layer not found. If you browse this site: https://innovainsportsapi.azurewebsites.net/swagger/index.html Api found. But if you browse this site: https://ordecasports.azurewebsites.net/ Blazor Layer not display, if you see browser console log this shows this errors:
GET https://innovainsportsapi.azurewebsites.net/.well-known/openid-configuration 502 (Bad Gateway)
(anonymous) @ global.js?_v=637843235597089265:2
t.getJson @ global.js?_v=637843235597089265:2
t.getMetadata @ global.js?_v=637843235597089265:2
t._getMetadataProperty @ global.js?_v=637843235597089265:2
t.getAuthorizationEndpoint @ global.js?_v=637843235597089265:2
t.createSigninRequest @ global.js?_v=637843235597089265:2
(anonymous) @ global.js?_v=637843235597089265:2
Promise.then (async)
e._signinStart @ global.js?_v=637843235597089265:2
e._signin @ global.js?_v=637843235597089265:2
e._signinSilentIframe @ global.js?_v=637843235597089265:2
(anonymous) @ global.js?_v=637843235597089265:2
Promise.then (async)
e.signinSilent @ global.js?_v=637843235597089265:2
(anonymous) @ global.js?_v=637843235597089265:2
trySilentSignIn @ global.js?_v=637843235597089265:2
getUser @ global.js?_v=637843235597089265:2
getUser @ global.js?_v=637843235597089265:2
(anonymous) @ global.js?_v=637843235597089265:10
beginInvokeJSFromDotNet @ global.js?_v=637843235597089265:10
Rt @ global.js?_v=637843235597089265:10
_mono_wasm_invoke_js_blazor @ dotnet.6.0.5.i9ayriga9e.js:1
$func219 @ dotnet.wasm:0x1a490
$func167 @ dotnet.wasm:0xce5e
$func166 @ dotnet.wasm:0xbd71
$func2812 @ dotnet.wasm:0xabf01
$func1616 @ dotnet.wasm:0x6fcc2
$func1620 @ dotnet.wasm:0x7032f
$mono_wasm_invoke_method @ dotnet.wasm:0x969d
Module._mono_wasm_invoke_method @ dotnet.6.0.5.i9ayriga9e.js:1
managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS @ managed__Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS:16
endInvokeJSFromDotNet @ global.js?_v=637843235597089265:10
(anonymous) @ global.js?_v=637843235597089265:10
Promise.then (async)
beginInvokeJSFromDotNet @ global.js?_v=637843235597089265:10
Rt @ global.js?_v=637843235597089265:10
_mono_wasm_invoke_js_blazor @ dotnet.6.0.5.i9ayriga9e.js:1
$func219 @ dotnet.wasm:0x1a490
$func167 @ dotnet.wasm:0xce5e
$func166 @ dotnet.wasm:0xbd71
$func2812 @ dotnet.wasm:0xabf01
$func1616 @ dotnet.wasm:0x6fcc2
$func1620 @ dotnet.wasm:0x7032f
$mono_wasm_invoke_method @ dotnet.wasm:0x969d
Module._mono_wasm_invoke_method @ dotnet.6.0.5.i9ayriga9e.js:1
_call_method_with_converted_args @ dotnet.6.0.5.i9ayriga9e.js:1
call_method @ dotnet.6.0.5.i9ayriga9e.js:1
(anonymous) @ dotnet.6.0.5.i9ayriga9e.js:1
call_assembly_entry_point @ dotnet.6.0.5.i9ayriga9e.js:1
callEntryPoint @ global.js?_v=637843235597089265:10
St @ global.js?_v=637843235597089265:10
global.js?_v=637843235597089265:2          GET https://innovainsportsapi.azurewebsites.net/.well-known/openid-configuration 502 (Bad Gateway)
  • Steps to reproduce the issue:"
This is appsettings in blazor:
{
  "App": {
    "SelfUrl": "https://ordecasports.azurewebsites.net"
  },
  "AuthServer": {
    "Authority": "https://innovainsportsapi.azurewebsites.net",
    "ClientId": "InterSports_Blazor",
    "ResponseType": "code"
  },
  "RemoteServices": {
    "Default": {
      "BaseUrl": "https://innovainsportsapi.azurewebsites.net"
    },
    "AbpAccountPublic": {
      "BaseUrl": "https://innovainsportsapi.azurewebsites.net"
    }
  },
  "AbpCli": {
    "Bundle": {
      "Mode": "BundleAndMinify", /* Options: None, Bundle, BundleAndMinify */
      "Name": "global",
      "Parameters": {
        "LeptonTheme.Style": "Style6", /* Options: Style1, Style2... Style6 */
        "LeptonTheme.ChangeStyleDynamically": "true"
      }
    }
  }
}
And this is my appsettings in api host:
{
  "App": {
    "SelfUrl": "https://innovainsportsapi.azurewebsites.net",
    "AngularUrl": "http://localhost:4200",
    "CorsOrigins": "https://*.azurewebsites.net,https://*.InterSports.com,https://localhost:44307",
    "RedirectAllowedUrls": "http://localhost:4200,https://localhost:44307"
  },
  "Redis": {
    "Configuration": "127.0.0.1"
  },
  "ConnectionStrings": {
    "Default": "Server=tcp:sportssrv.database.windows.net,1433;Initial Catalog=InterSports;Persist Security Info=False;User ID=innovainadmin;Password=****;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
  },
  "AuthServer": {
    "Authority": "https://innovainsportsapi.azurewebsites.net",
    "RequireHttpsMetadata": "false",
    "SwaggerClientId": "InterSports_Swagger",

  },
  "StringEncryption": {
    "DefaultPassPhrase": "lrkjZGSrHairnNmy"
  },
  "Settings": {
    "Volo.Abp.LeptonTheme.Style": "Style6",
    "Volo.Abp.LeptonTheme.Layout.MenuPlacement": "Left",
    "Volo.Abp.LeptonTheme.Layout.MenuStatus": "AlwaysOpened",
    "Volo.Abp.LeptonTheme.Layout.Boxed": "False"
  }
}

2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    GET https://innovainsportsapi.azurewebsites.net/.well-known/openid-configuration 502 (Bad Gateway)

    Your blazor doesn't seem to be able to reach this site.

  • User Avatar
    0
    jhsanc created

    Thank you, now I found the error.

    Thank you for your help.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06