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.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Hi,

    Can you share the full error logs?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.