打开 关闭

Unable to retrieve document from: PII is hidden. #98


User avatar
0
alper 创建
支持团队 Director

An unhandled exception occurred while processing the request. SocketException: No connection could be made because the target machine actively refused it. System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken)

HttpRequestException: No connection could be made because the target machine actively refused it. System.Net.Http.ConnectHelper.ConnectAsync(string host, int port, CancellationToken cancellationToken)

IOException: IDX20804: Unable to retrieve document from: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.GetDocumentAsync(string address, CancellationToken cancel)

InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Microsoft.IdentityModel.Protocols.ConfigurationManager<T>.GetConfigurationAsync(CancellationToken cancel)


2 答案
  • User Avatar
    0
    alper 创建
    支持团队 Director

    Most likely, there's an invalid cookie related with another project. The cookie names are same, so when you run different projects, it cannot be validated.

    Other potential problem can be, the IdentityServer project is not running.

  • User Avatar
    0
    gterdem 创建
    支持团队 Senior .NET Developer

    Too se detailed error, you can use: if (env.IsDevelopment()) { IdentityModelEventSource.ShowPII = true; } But if you are getting IDX20803 error, probably you can't reach to IdentityServer. Either https problem or server is down.

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11