I have created a Solr version 8.1.1 in Azure using a Docker for Sitecore. I get the following error for a large query
ERROR Error during executing a query.
Exception: SolrNet.Exceptions.SolrConnectionException
Message: <h1>Bad Message 431</h1><pre>reason: Request Header Fields Too Large</pre>
Source: SolrNet
at SolrNet.Impl.SolrConnection.Get(String relativeUrl, IEnumerable`1 parameters)
at SolrNet.Impl.SolrQueryExecuter`1.Execute(ISolrQuery q, QueryOptions options)
at Sitecore.ContentSearch.SolrProvider.LinqToSolrIndex`1.ExecuteQuery(SolrCompositeQuery compositeQuery, QueryOptions options)
Nested Exception
Exception: System.Net.WebException
Message: The remote server returned an error: (431) Request Header Fields Too Large.
Source: System
at System.Net.HttpWebRequest.GetResponse()
at HttpWebAdapters.Adapters.HttpWebRequestAdapter.GetResponse()
at SolrNet.Impl.SolrConnection.GetResponse(IHttpWebRequest request)
at SolrNet.Impl.SolrConnection.Get(String relativeUrl, IEnumerable`1 parameters)
I managed to resolve the issue by redeploy the Docker instance by updating the YML file with the following setting under environment section.
- SOLR_OPTS=-Dsolr.jetty.request.header.size=65535
Related
I am getting a the below error when loading a snowflake table using ODBC, any help appreciated
WRT_8229 Database errors occurred:
FnName: Execute -- [Snowflake][Snowflake] (4)
REST request for URL https://xxxxxxdev.us-east-1.snowflakecomputing.com:443/queries/v1/query-request?requestId=deed9c65-c4be-4d10-a6ec-ce042682168e&request_guid=b4684834-6373-411c-957a-e89f1110014f failed: HTTP error (http error) - code=400.
FnName: Execute -- [DataDirect][ODBC lib] Function sequence error
Consider the following error message:
Timestamp: 9/11/2018 3:09:34 PM
Message: Class: XXX.MW.BackEnds.oTransaccoesSuspeitas Method: Microsoft.XLANGs.Core.StopConditions segment7(Microsoft.XLANGs.Core.StopConditions) : Exception: An error occurred while processing the message, refer to the details section for more information
Message ID: {139DCE33-4627-4103-9B25-1906EBAD14A8}
Instance ID: {1F943998-158C-4357-8E2A-0473B9425CD3}
Error Description: System.Net.WebException: The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.
401 UNAUTHORIZED
Stack Microsoft.XLANGs.BizTalk.Engine
Category: Critical
Priority: 4
EventId: 0
Severity: Critical
Title:XXX.MW.BackEnds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1512f695a673d231
Machine: CORE04
Application Domain: __XDomain_3.0.1.0_0
Process Id: 54889
Process Name: C:\Program Files (x86)\Microsoft BizTalk Server 2013 R2\BTSNTSvc.exe
Win32 Thread Id: 7844
Thread Name:
Extended Properties: Exception - Microsoft.XLANGs.Core.XlangSoapException: An error occurred while processing the message, refer to the details section for more information
Message ID: {139DCE33-4627-4103-9B25-1906EBAD14A8}
Instance ID: {1F943998-158C-4357-8E2A-0473B9425CD3}
Error Description: System.Net.WebException: The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.
401 UNAUTHORIZED
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase.VerifyTransport(Envelope env, Int32 operationId, Context ctx)
at Microsoft.XLANGs.Core.Subscription.Receive(Segment s, Context ctx, Envelope& env, Boolean topOnly)
at Microsoft.XLANGs.Core.PortBase.GetMessageId(Subscription subscription, Segment currentSegment, Context cxt, Envelope& env, CachedObject location)
at XXX.MW.BackEnds.oTransaccoesSuspeitas.segment2(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
The error is being thrown by an orchestration during the processing of a message obtained from an SQL table.
The data was obtained successfully because I have a readingIndex that's updated by biztalk.
The problem happens randomly, but I can fix it by restarting the biztalk application.
What could possibly be causing the problem?
Do I reset some identification code by restarting the applications?
I am calling a WebApi Method that adds to a database. This method succeeds and throws no exceptions; however angular gets a 500 error:
POST "MyServer" 500 (Internal Server Error)angular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:250
(anonymous function)angular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:245
mangular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:243
fangular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:274
(anonymous function)angular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:288
k.$evalangular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:285
k.$digestangular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:289
k.$applyangular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:390
(anonymous function)angular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:3
n.event.dispatchangular?v=jZUm0Uxsk4Ig_MVBcIx2KTRnLbeaXFiNS47wjLSNXC01:3 r.handle
All of this is internal angular code and I am not sure where / how to debug this stuff
angular service
this.add = function (myObject) {
$http({
method: "POST",
url: "api/theServer/Add/",
data: myObject
});
};
WebApi
[Route("Add/"), HttpPost]
public void Add(MyObject myObject)
{
_service.Add(waiver);
}
The data is saved to the database just fine, however angular is throwing an error and is not updating the page
This is returned from the server:
The specified policy origin 'MyServer' is invalid. It must not contain a path, query, or fragment
UPDATE
"Message": "An error has occurred.",
"ExceptionMessage": "The specified policy origin 'MyServer' is invalid. It must not contain a path, query, or fragment.",
"ExceptionType": "System.InvalidOperationException",
"StackTrace": " at System.Web.Http.Cors.EnableCorsAttribute.ValidateOrigins(IList`1 origins)\r\n at System.Web.Http.Cors.EnableCorsAttribute.GetCorsPolicyAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Web.Http.Cors.CorsMessageHandler.<GetCorsPolicyAsync>d__10.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Cors.CorsMessageHandler.<HandleCorsRequestAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n at System.Web.Http.Cors.CorsMessageHandler.<SendAsync>d__0.MoveNext()"
This is the full stack returned from Postman
Your Web browser is not permitting information to be fetched from a third-party site. The request is being sent fine, but javascript is not permitted to process the response because it is from an untrusted source.
You have several options, the most common being:
Add a rewrite proxy into your origin server to forward packets
to the remote server
Enable CORS support on your origin server
to permit cross-domain requests
Alternatively, it might be that you have CORS enabled already, but your "MyServer" host is not in the permitted domain list.
I am trying to index xml files in solr search engine using following command:
java -Durl=http://10.1.11.143:8080/solr/#/ -jar post.jar solr.xml
But I am getting following error:
SimplePostTool version 1.5
Posting files to base url http://10.1.11.143:8080/solr/#/ using content-type application/xml..
POSTing file solr.xml
SimplePostTool: WARNING: Solr returned an error #500 Internal Server Error
SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 500 for URL: http://10.1.11.143:8080/solr/#/
1 files indexed.
COMMITting Solr index changes to http://10.1.11.143:8080/solr/#/..
SimplePostTool: WARNING: Solr returned an error #500 Internal Server Error for url http://10.1.11.143:8080/solr/#/?commit=true
Time spent: 0:00:00.017
Please help me to come out of this error.
Content of solr.xml is as shown in the picture:
The issue is because of the URL. You didn't mention any requestHandler while updating. Use the following command. It'll work.
java -Durl=http://10.1.11.143:8080/solr/update?commit=true -jar post.jar solr.xml
/update is the requestHandler to index data into Solr.
I have a dnn website which I have configured as secure. After making it secure whenever I access secure pages of host menu, it throws error and I am unable to access host secure pages.
Please help me ASAP!
Error Details :
Method: DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
Thanks,
Kusum
Try to re-install your certificate
Clear Web Browser Cache
Restart Site (add a white space to your web.config file and save)