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

4 Comments

  1. Ramesh

    Hi,
    We are also getting the same error, using Java jar file calling SFDC.

    Java jar file is using in Informatica . Please suggest and provide solution, what might be the error for the same
    Any Cookie related information need to add in Informatica?

    Thanks,
    Ramesh

    Reply
  2. Talendadmin

    Hi Qwei,

    No it doesn’t influence the run.
    No you can’t remove as warning is activated in all connections components and it’s not an option

    Cheers

    Reply
  3. qwei

    Hello, Talendadmin

    is the warining influence the job running result? is there a possible remove this warning when run the talend job?

    Brs
    Qwei

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.