Skip to content

无法直接在浏览器中访问 8080 #263

Description

@AllenEllen

直接访问 8080,得到如下错误:koalawiki-1 | [06:33:40 INF] Request starting HTTP/1.1 GET http://192.168.2.165:8080/ - null null
koalawiki-1 | [06:33:41 ERR] HTTP GET / responded 500 in 76.0108 ms
koalawiki-1 | System.IO.FileNotFoundException: Could not find file '/app/wwwroot/index.html'.
koalawiki-1 | File name: '/app/wwwroot/index.html'
koalawiki-1 | at System.IO.FileInfo.get_Length()
koalawiki-1 | at Microsoft.AspNetCore.Http.SendFileFallback.SendFileAsync(Stream destination, String filePath, Int64 offset, Nullable1 count, CancellationToken cancellationToken) koalawiki-1 | at Microsoft.AspNetCore.Http.SendFileResponseExtensions.SendFileAsyncCore(HttpResponse response, String fileName, Int64 offset, Nullable1 count, CancellationToken cancellationToken)
koalawiki-1 | at Program.<>c__DisplayClass0_0.<<

$>b__10>d.MoveNext() in /src/src/KoalaWiki/Program.cs:line 290
koalawiki-1 | --- End of stack trace from previous location ---
koalawiki-1 | at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
koalawiki-1 | [06:33:41 ERR] Connection id "0HNFPK7S5IM66", Request id "0HNFPK7S5IM66:00000001": An unhandled exception was thrown by the application.
koalawiki-1 | System.IO.FileNotFoundException: Could not find file '/app/wwwroot/index.html'.
koalawiki-1 | File name: '/app/wwwroot/index.html'
koalawiki-1 | at System.IO.FileInfo.get_Length()
koalawiki-1 | at Microsoft.AspNetCore.Http.SendFileFallback.SendFileAsync(Stream destination, String filePath, Int64 offset, Nullable1 count, CancellationToken cancellationToken) koalawiki-1 | at Microsoft.AspNetCore.Http.SendFileResponseExtensions.SendFileAsyncCore(HttpResponse response, String fileName, Int64 offset, Nullable1 count, CancellationToken cancellationToken)
koalawiki-1 | at Program.<>c__DisplayClass0_0.<<$>b__10>d.MoveNext() in /src/src/KoalaWiki/Program.cs:line 290
koalawiki-1 | --- End of stack trace from previous location ---
koalawiki-1 | at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)
koalawiki-1 | at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
koalawiki-1 | at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

Originally posted by @AllenEllen in #258

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions