Salesforce : violates RFC 2109: host minus domain may not contain any dots

Salesforce : violates RFC 2109: host minus domain may not contain any dots

If you’re having this error :

WARN  [HttpMethodBase] Cookie rejected: “$Version=0; BrowserId=r6xh5l3CSZKIc2QhNu1B3A; $Path=/; $Domain=.salesforce.com”. Domain attribute “.salesforce.com” violates RFC 2109: host minus domain may not contain any dots

This is because Salesforce try to create a cookie for each new connection, but you’re querying with Java and not a webbrowser , this why it will be rejected and shown as a warning

Salesforce : violates RFC 2109: host minus domain may not contain any dots

If you have a requirement to try n number of times to connect to Salesforce as Salesforce ( like any cloud app ) is not 100% resilient , you might then need to develop the retry logic job which will automatically try and retry the connection until it get a successful connection.

The job, sleep few seconds between each two attempts and continue the process if the connection is OK.

This logic should be used throw your jobs to avoid any discrepancy.

Talend Salesforce Retry Logic Job

 

Salesforce : violates RFC 2109: host minus domain may not contain any dots

Pages:
Edit