खुला हुआ बंद किया हुआ

SignalR not configure in Chat Module #6782


User avatar
0
ghadage70@gmail.com बनाया था
  • ABP Framework version: v8.0.4
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): Separated
  • Exception message and full stack trace: Failed to complete negotiation with the server: Error: : Status code '404' Either this is not a SignalR endpoint or there is a proxy blocking the connection
  • Steps to reproduce the issue: Create new microservice template using abp suite for angular and add chat module in AdministrationService service.


11 उत्तर (ओं)
  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल Fullstack Developer

    Hi,

    You need to update the gateway configuration to add the chat routes.

  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल Fullstack Developer

    Hi,

    You can try updating the yarp.json in the WebGateway.

    For example

     "ChatSignalr": {
        "ClusterId": "Administration",
        "Match": {
          "Path": "/signalr-hubs/chat/{**catch-all}"
        }
      },
      "Chat": {
        "ClusterId": "Administration",
        "Match": {
          "Path": "/api/chat/{**catch-all}"
        }
      },
    

  • User Avatar
    0
    ghadage70@gmail.com बनाया था

    I have already added same im yarp file still getting same issue.

    You can esily repoduce this issue: Create a new microservice project with angular, ef core, sql using ABP Suite 8.0.4 Add chat module in Administration Service.

    LOG:

    [web-gateway_97bfe0c2-f]: [11:45:11 INF] Executing endpoint 'Chat' [web-gateway_97bfe0c2-f]: [11:45:11 INF] Proxying to https://localhost:44367/api/chat/contact/total-unread-message-count HTTP/2 RequestVersionOrLower no-streaming [web-gateway_97bfe0c2-f]: [11:45:11 INF] CORS policy execution successful. [web-gateway_97bfe0c2-f]: [11:45:11 INF] CORS policy execution successful. [web-gateway_97bfe0c2-f]: [11:45:11 INF] Executing endpoint 'ChatSignalr' [web-gateway_97bfe0c2-f]: [11:45:11 INF] Proxying to https://localhost:44367/signalr-hubs/chat/negotiate?negotiateVersion=1 HTTP/2 RequestVersionOrLower no-streaming [web-gateway_97bfe0c2-f]: [11:45:11 INF] Received HTTP/2.0 response 404. [web-gateway_97bfe0c2-f]: [11:45:11 INF] Executed endpoint 'ChatSignalr' [web-gateway_97bfe0c2-f]: [11:45:11 INF] Received HTTP/2.0 response 200. [web-gateway_97bfe0c2-f]: [11:45:11 INF] Executed endpoint 'Chat'

  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल Fullstack Developer

    Hi,

    Can you share the logs of the AdministrationService?

  • User Avatar
    0
    ghadage70@gmail.com बनाया था

    [administration-service_07060b18-3]: [14:46:44 INF] Request origin http://localhost:4200 does not have permission to access the resource. [administration-service_07060b18-3]: [14:46:44 INF] Executing endpoint 'Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi)' [administration-service_07060b18-3]: [14:46:44 INF] Route matched with {area = "chat", action = "GetContacts", controller = "Contact", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[System.Collections.Generic.List1[Volo.Chat.Users.ChatContactDto]] GetContactsAsync(Volo.Chat.Users.GetContactsInput) on controller Volo.Chat.Users.ContactController (Volo.Chat.HttpApi). [administration-service_07060b18-3]: [14:46:44 INF] Executing action method Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi) - Validation state: Valid [administration-service_07060b18-3]: [14:46:44 INF] Start processing HTTP request GET https://localhost:44322/.well-known/openid-configuration [administration-service_07060b18-3]: [14:46:44 INF] Sending HTTP request GET https://localhost:44322/.well-known/openid-configuration [administration-service_07060b18-3]: [14:46:44 INF] Received HTTP response headers after 6.7865ms - 200 [administration-service_07060b18-3]: [14:46:44 INF] End processing HTTP request after 7.084ms - 200 [administration-service_07060b18-3]: [14:46:44 INF] Start processing HTTP request GET https://localhost:44322/.well-known/jwks [administration-service_07060b18-3]: [14:46:44 INF] Sending HTTP request GET https://localhost:44322/.well-known/jwks [administration-service_07060b18-3]: [14:46:44 INF] Received HTTP response headers after 3.0377ms - 200 [administration-service_07060b18-3]: [14:46:44 INF] End processing HTTP request after 3.2607ms - 200 [administration-service_07060b18-3]: [14:46:44 INF] Start processing HTTP request POST https://localhost:44322/connect/token [administration-service_07060b18-3]: [14:46:44 INF] Sending HTTP request POST https://localhost:44322/connect/token [administration-service_07060b18-3]: [14:46:44 INF] Received HTTP response headers after 82.974ms - 200 [administration-service_07060b18-3]: [14:46:44 INF] End processing HTTP request after 83.1962ms - 200 [administration-service_07060b18-3]: [14:46:44 INF] Start processing HTTP request GET https://localhost:44388/integration-api/identity/users/d6610804-b933-351e-8575-3a11105c13c2/role-names?api-version=1.0 [administration-service_07060b18-3]: [14:46:44 INF] Sending HTTP request GET https://localhost:44388/integration-api/identity/users/d6610804-b933-351e-8575-3a11105c13c2/role-names?api-version=1.0 [administration-service_07060b18-3]: [14:46:44 INF] Received HTTP response headers after 20.1081ms - 200 [administration-service_07060b18-3]: [14:46:44 INF] End processing HTTP request after 20.3072ms - 200 [administration-service_07060b18-3]: [14:46:44 INF] Executed action method Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 170.8234ms. [administration-service_07060b18-3]: [14:46:44 INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List1[[Volo.Chat.Users.ChatContactDto, Volo.Chat.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. [administration-service_07060b18-3]: [14:46:44 INF] Executed action Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi) in 177.0692ms [administration-service_07060b18-3]: [14:46:44 INF] Executed endpoint 'Volo.Chat.Users.ContactController.GetContactsAsync (Volo.Chat.HttpApi)' [administration-service_07060b18-3]: [14:46:44 INF] CORS policy execution failed. [administration-service_07060b18-3]: [14:46:44 INF] Request origin http://localhost:4200 does not have permission to access the resource. [administration-service_07060b18-3]: [14:46:44 INF] Executing endpoint 'Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi)' [administration-service_07060b18-3]: [14:46:44 INF] Route matched with {area = "chat", action = "GetConversation", controller = "Conversation", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.Chat.Conversations.ChatConversationDto] GetConversationAsync(Volo.Chat.Conversations.GetConversationInput) on controller Volo.Chat.Conversations.ConversationController (Volo.Chat.HttpApi). [administration-service_07060b18-3]: [14:46:44 INF] Executing action method Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi) - Validation state: Valid [administration-service_07060b18-3]: [14:46:44 INF] Executed action method Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 103.5783ms. [administration-service_07060b18-3]: [14:46:44 INF] Executing ObjectResult, writing value of type 'Volo.Chat.Conversations.ChatConversationDto'. [administration-service_07060b18-3]: [14:46:44 INF] Executed action Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi) in 169.8128ms [administration-service_07060b18-3]: [14:46:44 INF] Executed endpoint 'Volo.Chat.Conversations.ConversationController.GetConversationAsync (Volo.Chat.HttpApi)'

  • User Avatar
    0
    ghadage70@gmail.com बनाया था

    Hi,

    Can you share the logs of the AdministrationService?

    lets have call, as we are facing this issue from long time.

  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल Fullstack Developer

    Hi,

    It seems like SignalR is not installed.

    You can manually install the Volo.Chat.SignalR to the AdministrationService HTTPAPI.Host project

    And add module class dependencies

    [DependsOn(
      //...
      typeof(ChatSignalRModule)
    )]
    
  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल Fullstack Developer

    lets have call, as we are facing this issue from long time.

    Sure, we can have a zoom meeting next Monday. my email is shiwei.liang@volosoft.com

  • User Avatar
    0
    ghadage70@gmail.com बनाया था

    lets have call, as we are facing this issue from long time.

    Sure, we can have a zoom meeting next Monday. my email is shiwei.liang@volosoft.com

    I have created meeting for today on zoom, could you please join?

  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल Fullstack Developer

    Sure, can we start now?

  • User Avatar
    0
    liangshiwei बनाया था
    सहायता दल Fullstack Developer

    It's a problem of suite, It installed to the wrong project

Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11