Open Closed

missing 'swagger/ui/abp.js' in WebGateway api #3461


User avatar
0
afatima@asb.bh created
  • ABP Framework version: v5.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Angular MicroServices
  • Exception message and stack trace: After upgrading to 5.3.3, WebGateway Api not working ' Error - missing /swagger/ui/abp.js'
  • Steps to reproduce the issue:"
    • Create new Angular, EF Core, Microservice,
    • .\etc\docker\up.ps1
    • .\etc\dev-cert\create-certificate.ps1
    • abp install-libs
    • dotnet build /graphBuild
    • Run Type, try to load WebGateway API (https://localhost:44325/swagger/index.html).
    • But when try to access 'Auth-Server' (https://localhost:44322/swagger/index.html), api works as it have swagger ui folder present.


1 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    In OnApplicationInitialization:

    app.UseCorrelationId();
    app.UseStaticFiles(); //Add this line
    app.UseCors();
    

    I have refunded your question, we'll fix it in the first patch.

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