We have an app that connects from one Salesforce org to another Salesforce org. The code has been working perfectly fine for many months. The code connects to another org and gets all the metadata details.
However, we got this error today:
System.CalloutException: Web service callout failed: WebService returned a
SOAP Fault:
INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session.
Session not found, missing session key: This is expected, it can happen if
the session has expired and swept away, or if the user logs out, or if its
just someone trying to hack in.
What could have changed so that we are getting this error? I am pretty sure that there is nothing wrong in the code.