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

400 error on connect/authorize api #4947


User avatar
0
ed_developer3 created

Hi,

I am getting 400 error An internal error occurred during your request! on connect/authorize api. No detailed error in log files.

Working fine in localhost but 400 error after deployed on linux server

Steps:

  1. Run swagger
  2. Click on authorize button
  3. It will redirect to error 400 page Login page is not opening.


4 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you share the full error logs?

  • User Avatar
    0
    ed_developer3 created

    Hi,

    It is working fine in localhost but not after deployed on linux server.

    Request finished HTTP/1.1 GET http://localhost/Abp/ApplicationLocalizationScript?cultureName=en - - - 200 64224 application/javascript 67.2941ms [10:16:10 INF] Route matched with {area = "Abp", action = "GetAll", controller = "AbpServiceProxyScript", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetAll(Volo.Abp.AspNetCore.Mvc.ProxyScripting.ServiceProxyGenerationModel) on controller Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController (Volo.Abp.AspNetCore.Mvc). [10:16:10 INF] Request finished HTTP/1.1 GET http://localhost/css/pro/top-menu/layout-bundle.css - - - 302 0 - 3.5415ms [10:16:10 WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. [10:16:10 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [10:16:10 INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) in 88.1192ms [10:16:10 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' [10:16:10 INF] Request finished HTTP/1.1 GET http://localhost/Abp/ApplicationConfigurationScript - - - 200 5662 application/javascript 95.2566ms [10:16:10 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [10:16:10 INF] Executed action Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) in 21.5592ms [10:16:10 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' [10:16:10 INF] Request finished HTTP/1.1 GET http://localhost/Abp/ServiceProxyScript - - - 200 45955 application/javascript 78.8211ms [10:16:10 INF] Request starting HTTP/1.1 GET http://localhost/Error?httpStatusCode=404 - - [10:16:10 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [10:16:10 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [10:16:10 INF] Executing ViewResult, running view ~/Views/Error/404.cshtml. [10:16:10 WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. [10:16:10 INF] Executed ViewResult - view ~/Views/Error/404.cshtml executed in 3.9393ms. [10:16:10 INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 5.0962ms [10:16:10 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [10:16:10 INF] Request finished HTTP/1.1 GET http://localhost/Error?httpStatusCode=404 - - - 404 - text/html;+charset=utf-8 8.5444ms [10:16:11 INF] Request starting HTTP/1.1 GET http://localhost/__bundles/moment.min.js.map; - - [10:16:11 INF] Request finished HTTP/1.1 GET http://localhost/__bundles/moment.min.js.map; - - - 302 0 - 3.4813ms [10:16:11 INF] Request starting HTTP/1.1 GET http://localhost/Error?httpStatusCode=404 - - [10:16:11 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [10:16:11 INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). [10:16:11 INF] Executing ViewResult, running view ~/Views/Error/404.cshtml. [10:16:11 WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. [10:16:11 INF] Executed ViewResult - view ~/Views/Error/404.cshtml executed in 8.6285ms. [10:16:11 INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 9.9069ms [10:16:11 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' [10:16:11 INF] Request finished HTTP/1.1 GET http://localhost/Error?httpStatusCode=404 - - - 404 - text/html;+charset=utf-8 13.5558ms

    Just replaced the endpoint with the localhost

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, but I can't see any error here.

    When deploying you need to do some configuration, the document is for IdentityServer but is also used for OpenIddict.

    You can check this:

    https://docs.abp.io/en/commercial/latest/guides/identityserver-deployment

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    BTW, you can also check this:

    https://support.abp.io/QA/Questions/4408/Error-An-internal-error-occurred-during-your-request-400-While-Login-using-angular

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