cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

"Error occurred while validating HTTP header: cookie" in Application logs

Highlighted
Level 10

"Error occurred while validating HTTP header: cookie" in Application logs

Hi @Aanjan,

 

I have updated the property "Validator.HTTPCookieValue=^[a-zA-Z0-9-\\\/+=_%;\.| ]*$" and my cookie id was "JSESSIONID=5D443A9AACEABC3C44B7C4883B142D26". The Id seems to match the regex i had checked, but i can still see "Error occurred while validating HTTP header: cookie" in the logs. 

 

Based on  this article, i had changed the platform.settings file as below,

 

{
"PlatformSettingsConfig": {
		"BasicSettings": {
			"HTTPRequestHeaderMaxLength": 10000,
			"HTTPRequestParameterMaxLength": 10000
		}
	},
	"PersistenceProviderPackageConfigs": {
		"PostgresPersistenceProviderPackage": {
			"ConnectionInformation": {
				"jdbcUrl": <jdbc:postgresql://postgresql URL/thingworx>,
				"password": "password",
				"username": "twadmin",
				"maxPoolSize": "15000",
				"minPoolSize": "500"
			}
		}
	}
}

But the issue persists. Please advice.

 

Thanks and Regards

Saran

2 REPLIES 2

Re: "Error occurred while validating HTTP header: cookie" in Application logs

Hi Saran,

 

Please check also Tomcat logs, it might be some detailed error to give more info.

 

Thanks,

Raluca Edu

Re: "Error occurred while validating HTTP header: cookie" in Application logs

Hi @raluca_edu,

 

Thanks for your reply. I had checked the catalina logs. There were no error logs recorded in Catalina.out when the message came in the Application logs. 

 

Regards,

Saran