- ABP Framework version: v7.2.1
- UI type: Blazor Server
- DB provider: EF Core
I have created a new Blazor Server project using ABP Suite [v7.2.1] Then using ABP Suite added the Chat Module The project runs all ok up until this point.
Next, as per documentation, added Chat to the Edition features Now when running this message is given:
Please advise how to resolve this. Thank you.
7 Answer(s)
-
0
hi
What are the logs of the backend of the 400 bad request?
-
0
2023-05-08 21:44:51.482 +12:00 [DBG] Found in the cache: pn:R,pk:admin,n:AuditLogging.AuditLogs,pn:R,pk:admin,n:AbpIdentity.OrganizationUnits,pn:R,pk:admin,n:AbpIdentity.Roles,pn:R,pk:admin,n:AbpIdentity.Users,pn:R,pk:admin,n:AbpIdentity.SecurityLogs,pn:R,pk:admin,n:LanguageManagement.Languages,pn:R,pk:admin,n:LanguageManagement.LanguageTexts,pn:R,pk:admin,n:TextTemplateManagement.TextTemplates,pn:R,pk:admin,n:Chat721Test.Dashboard.Tenant 2023-05-08 21:44:51.482 +12:00 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AuditLogging.AuditLogs,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.OrganizationUnits,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.Roles,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.Users,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.SecurityLogs,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:LanguageManagement.Languages,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:LanguageManagement.LanguageTexts,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:TextTemplateManagement.TextTemplates,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:Chat721Test.Dashboard.Tenant 2023-05-08 21:44:51.482 +12:00 [DBG] Found in the cache: pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AuditLogging.AuditLogs,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.OrganizationUnits,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.Roles,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.Users,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.SecurityLogs,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:LanguageManagement.Languages,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:LanguageManagement.LanguageTexts,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:TextTemplateManagement.TextTemplates,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:Chat721Test.Dashboard.Tenant 2023-05-08 21:44:51.482 +12:00 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:AuditLogging.AuditLogs,pn:R,pk:admin,n:AbpIdentity.OrganizationUnits,pn:R,pk:admin,n:AbpIdentity.Roles,pn:R,pk:admin,n:AbpIdentity.Users,pn:R,pk:admin,n:AbpIdentity.SecurityLogs,pn:R,pk:admin,n:LanguageManagement.Languages,pn:R,pk:admin,n:LanguageManagement.LanguageTexts,pn:R,pk:admin,n:TextTemplateManagement.TextTemplates,pn:R,pk:admin,n:Chat721Test.Dashboard.Tenant 2023-05-08 21:44:51.482 +12:00 [DBG] Found in the cache: pn:R,pk:admin,n:AuditLogging.AuditLogs,pn:R,pk:admin,n:AbpIdentity.OrganizationUnits,pn:R,pk:admin,n:AbpIdentity.Roles,pn:R,pk:admin,n:AbpIdentity.Users,pn:R,pk:admin,n:AbpIdentity.SecurityLogs,pn:R,pk:admin,n:LanguageManagement.Languages,pn:R,pk:admin,n:LanguageManagement.LanguageTexts,pn:R,pk:admin,n:TextTemplateManagement.TextTemplates,pn:R,pk:admin,n:Chat721Test.Dashboard.Tenant 2023-05-08 21:44:51.482 +12:00 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AuditLogging.AuditLogs,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.OrganizationUnits,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.Roles,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.Users,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.SecurityLogs,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:LanguageManagement.Languages,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:LanguageManagement.LanguageTexts,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:TextTemplateManagement.TextTemplates,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:Chat721Test.Dashboard.Tenant 2023-05-08 21:44:51.482 +12:00 [DBG] Found in the cache: pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AuditLogging.AuditLogs,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.OrganizationUnits,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.Roles,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.Users,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:AbpIdentity.SecurityLogs,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:LanguageManagement.Languages,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:LanguageManagement.LanguageTexts,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:TextTemplateManagement.TextTemplates,pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:Chat721Test.Dashboard.Tenant 2023-05-08 21:44:51.482 +12:00 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:AuditLogging.AuditLogs,pn:R,pk:admin,n:AbpIdentity.OrganizationUnits,pn:R,pk:admin,n:AbpIdentity.Roles,pn:R,pk:admin,n:AbpIdentity.Users,pn:R,pk:admin,n:AbpIdentity.SecurityLogs,pn:R,pk:admin,n:LanguageManagement.Languages,pn:R,pk:admin,n:LanguageManagement.LanguageTexts,pn:R,pk:admin,n:TextTemplateManagement.TextTemplates,pn:R,pk:admin,n:Chat721Test.Dashboard.Tenant 2023-05-08 21:44:51.482 +12:00 [DBG] Found in the cache: pn:R,pk:admin,n:AuditLogging.AuditLogs,pn:R,pk:admin,n:AbpIdentity.OrganizationUnits,pn:R,pk:admin,n:AbpIdentity.Roles,pn:R,pk:admin,n:AbpIdentity.Users,pn:R,pk:admin,n:AbpIdentity.SecurityLogs,pn:R,pk:admin,n:LanguageManagement.Languages,pn:R,pk:admin,n:LanguageManagement.LanguageTexts,pn:R,pk:admin,n:TextTemplateManagement.TextTemplates,pn:R,pk:admin,n:Chat721Test.Dashboard.Tenant 2023-05-08 21:44:51.757 +12:00 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:Chat.Messaging 2023-05-08 21:44:51.757 +12:00 [DBG] Found in the cache: pn:U,pk:bb403ede-0f30-828e-c48e-3a0b051a573f,n:Chat.Messaging 2023-05-08 21:44:51.757 +12:00 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:Chat.Messaging 2023-05-08 21:44:51.757 +12:00 [DBG] Found in the cache: pn:R,pk:admin,n:Chat.Messaging 2023-05-08 21:44:51.823 +12:00 [INF] Request starting HTTP/2 GET https://localhost:44328/api/account/profile-picture-file/bb403ede-0f30-828e-c48e-3a0b051a573f - - 2023-05-08 21:44:51.823 +12:00 [INF] Request starting HTTP/2 GET https://localhost:44328/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2 - - 2023-05-08 21:44:51.825 +12:00 [INF] The file /libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2 was not modified 2023-05-08 21:44:51.825 +12:00 [INF] Request finished HTTP/2 GET https://localhost:44328/libs/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2 - - - 304 - font/woff2 1.3409ms 2023-05-08 21:44:51.832 +12:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. 2023-05-08 21:44:51.832 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. 2023-05-08 21:44:51.832 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. 2023-05-08 21:44:51.832 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. 2023-05-08 21:44:51.832 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement. 2023-05-08 21:44:51.832 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader. 2023-05-08 21:44:51.836 +12:00 [INF] Executing endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' 2023-05-08 21:44:51.836 +12:00 [INF] Route matched with {area = "account", action = "GetProfilePictureFile", controller = "Account", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Content.IRemoteStreamContent] GetProfilePictureFileAsync(System.Guid) on controller Volo.Abp.Account.AccountController (Volo.Abp.Account.Pro.Public.HttpApi). 2023-05-08 21:44:51.858 +12:00 [DBG] Added 0 entity changes to the current audit log 2023-05-08 21:44:51.858 +12:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Content.RemoteStreamContent'. 2023-05-08 21:44:51.859 +12:00 [INF] Executed action Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) in 22.9527ms 2023-05-08 21:44:51.859 +12:00 [INF] Executed endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' 2023-05-08 21:44:51.860 +12:00 [INF] Request finished HTTP/2 GET https://localhost:44328/api/account/profile-picture-file/bb403ede-0f30-828e-c48e-3a0b051a573f - - - 200 1370 image/jpeg 36.3455ms 2023-05-08 21:44:51.993 +12:00 [INF] Request starting HTTP/2 POST https://localhost:44328/signalr-hubs/chat/negotiate?negotiateVersion=1 - 0 2023-05-08 21:44:51.994 +12:00 [DBG] The event OpenIddict.Validation.OpenIddictValidationEvents+ProcessRequestContext was successfully processed by OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers+ResolveRequestUri. 2023-05-08 21:44:51.994 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ResolveRequestUri. 2023-05-08 21:44:51.994 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.OpenIddictServerHandlers+InferEndpointType. 2023-05-08 21:44:51.994 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by Volo.Abp.Account.Web.Pages.Account.OpenIddictImpersonateInferEndpointType. 2023-05-08 21:44:51.994 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateTransportSecurityRequirement. 2023-05-08 21:44:51.994 +12:00 [DBG] The event OpenIddict.Server.OpenIddictServerEvents+ProcessRequestContext was successfully processed by OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandlers+ValidateHostHeader. 2023-05-08 21:44:51.997 +12:00 [INF] Executing endpoint '/_Host' 2023-05-08 21:44:51.997 +12:00 [INF] Route matched with {page = "/_Host", area = "", action = "", controller = ""}. Executing page /_Host 2023-05-08 21:44:51.998 +12:00 [INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy 2023-05-08 21:44:52.000 +12:00 [INF] Antiforgery token validation failed. The required antiforgery header value "RequestVerificationToken" is not present. Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery header value "RequestVerificationToken" is not present. at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext) at Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.ValidateAntiforgeryTokenAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context) 2023-05-08 21:44:52.000 +12:00 [INF] Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.AutoValidateAntiforgeryTokenAuthorizationFilter'. 2023-05-08 21:44:52.004 +12:00 [INF] Executing StatusCodeResult, setting HTTP status code 400 2023-05-08 21:44:52.004 +12:00 [INF] Executed page /_Host in 6.253ms 2023-05-08 21:44:52.004 +12:00 [INF] Executed endpoint '/_Host' 2023-05-08 21:44:52.005 +12:00 [INF] Request finished HTTP/2 POST https://localhost:44328/signalr-hubs/chat/negotiate?negotiateVersion=1 - 0 - 400 - - 11.6629ms 2023-05-08 21:44:52.029 +12:00 [WRN] Unhandled exception rendering component: Response status code does not indicate success: 400 (Bad Request). System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.NegotiateAsync(Uri url, HttpClient httpClient, ILogger logger, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.GetNegotiationResponseAsync(Uri uri, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.SelectAndStartTransport(TransferFormat transferFormat, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsyncCore(TransferFormat transferFormat, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsync(TransferFormat transferFormat, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken) at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore(CancellationToken cancellationToken) at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncInner(CancellationToken cancellationToken) at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync(CancellationToken cancellationToken) at Volo.Chat.Blazor.Components.MessagesToolbarItem.OnInitializedAsync() at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) 2023-05-08 21:44:52.033 +12:00 [ERR] Unhandled exception in circuit 'gcpXmhoXS95g4VjE7hJswkIuG3Y736dy3kJK3ACKmbU'. System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.NegotiateAsync(Uri url, HttpClient httpClient, ILogger logger, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.GetNegotiationResponseAsync(Uri uri, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.SelectAndStartTransport(TransferFormat transferFormat, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsyncCore(TransferFormat transferFormat, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsync(TransferFormat transferFormat, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken) at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken) at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore(CancellationToken cancellationToken) at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncInner(CancellationToken cancellationToken) at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync(CancellationToken cancellationToken) at Volo.Chat.Blazor.Components.MessagesToolbarItem.OnInitializedAsync() at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState) 2023-05-08 21:44:52.038 +12:00 [INF] Executed endpoint '/_blazor' 2023-05-08 21:44:52.038 +12:00 [INF] Request finished HTTP/1.1 GET https://localhost:44328/_blazor?id=utT4rJ8hMlOFD2-bXHtP6A - - - 101 - - 764.2299ms
-
0
hi
https://support.abp.io/QA/Questions/5018#answer-3a0b0d8f-1cf9-369c-8834-8cb9b50c130d
-
0
hi
[DependsOn(typeof(ChatBlazorModule))] [DependsOn(typeof(ChatBlazorServerModule))] [DependsOn(typeof(ChatSignalRModule))]
<PackageReference Include="Volo.Chat.Blazor" Version="7.2.1" /> <PackageReference Include="Volo.Chat.Blazor.Server" Version="7.2.1" /> <PackageReference Include="Volo.Chat.SignalR" Version="7.2.1" />
-
0
Ok thanks. The ABP Suite add package function only added:
[DependsOn(typeof(ChatBlazorModule))] [DependsOn(typeof(ChatBlazorServerModule))]
Will you be updating ABP Suite to include the missing package?
[DependsOn(typeof(ChatSignalRModule))]
-
0
Yes, I will forward it to the suite team.
-
0
Your questions credit is refunded.