TransWikia.com

Browsing any page on load balanced web application result in 400 page not found

Tridion Asked by sachin jain on September 30, 2021

Scenario: The architecture of the web application consists of three app servers in a load balanced mode. The application is build using DXA 2.2 -SDL Tridion 9.1 . The most of the micro services including the discovery service is load balanced. The web.config in all three app servers pointing to the load balanced discovery service URL

The code based is deployed across app servers and in sync and the pages/PT/Component/CT/Schema/Category and keywords were deployed as per the dependencies .

There are some intermittent issue with discovery service capabilities in CMS and as a result this issue Error occurred when communicating with CD Discovery Service.

When browsing the Default.html page the following error Popped up

Server Error in ‘/’ Application.
The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[WebException: The remote server returned an error: (404) Not Found.]
System.Net.HttpWebRequest.GetResponse() +1903
Sdl.Tridion.Api.Http.Client.HttpClient.Execute(IHttpClientRequest
clientRequest) +87

[HttpClientException: Failed to get http response from
‘https://prod-contentsvc.ccccc.com/cd/api’ with request: HttpRequest:
Path= Method=POST ContentType=application/json]
Sdl.Tridion.Api.Http.Client.HttpClient.Execute(IHttpClientRequest
clientRequest) +1068
Sdl.Tridion.Api.GraphQL.Client.GraphQLClient.Execute(IGraphQLRequest
graphQLrequest) +154

[GraphQLClientException: Failed to get http response from
‘https://prod-contentsvc.ccccc.com/cd/api’ with request: HttpRequest:
Path= Method=POST ContentType=application/json ]
Sdl.Tridion.Api.GraphQL.Client.GraphQLClient.Execute(IGraphQLRequest
graphQLrequest) +3420
Sdl.Tridion.Api.Client.ApiClient.GetPublicationMapping(ContentNamespace
ns, String url) +66
Sdl.Web.Tridion.Caching.CacheProvider.CreateCacheValue(UInt32 hash,
String key, String region, Func1 addFunction, IEnumerable1
dependencies) in
C:Rancherworkspacestashdevelopnetbuild_webappSdl.Web.TridionProvidersCachingCacheProvider.cs:133
Sdl.Web.Tridion.Caching.CacheProvider.GetOrAdd(String key, String
region, Func1 addFunction, IEnumerable1 dependencies) in
C:Rancherworkspacestashdevelopnetbuild_webappSdl.Web.TridionProvidersCachingCacheProvider.cs:86
Sdl.Web.Tridion.GraphQLLocalizationResolver.ResolveLocalization(Uri
url) in
C:Rancherworkspacestashdevelopnetbuild_webappSdl.Web.TridionResolversLocalizationGraphQLLocalizationResolver.cs:34
Sdl.Web.Mvc.Configuration.WebRequestContext.get_Localization() in
C:Rancherworkspacestashdevelopnetbuild_webappSdl.Web.MvcConfigurationWebRequestContext.cs:28
Sdl.Web.Mvc.Statics.StaticContentModule.BeginRequest(Object sender,
EventArgs e) in
C:Rancherworkspacestashdevelopnetbuild_webappSdl.Web.MvcStaticsStaticContentModule.cs:85
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+152 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +231 System.Web.HttpApplication.ExecuteStep(IExecutionStep
step, Boolean& completedSynchronously) +94

Note: Pages were published and able to find in the database

Ask What is the solution to this issue?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP