Forum Discussion
kxwillis
2 years agoRegular Visitor
Invalid Auth Header from Web Activity for SalesForce
I am issuing a request to a SalesForce bulk API 2.0 from web activity but am receiving an INVALID_AUTH_HEADER resposne and am not sure why. I do have a valid token from the previous web activity and...
kxwillis
2 years agoRegular Visitor
OUTPUT OF WEB ACTIVITY 1
{
"access_token": "00D5Y000001bchT!AQEAQDaYCiIjOZKYySRwnpsY3CloFGzEiTc0abZNK60LiEtqJWnRAvEHwrX363RTqbqwNz.[rest of token]",
"signature": "KY58auRKT0Y4JdvVU/WRo6/WHvfqMoepYoHgm636nso=",
"instance_url": "https://contessahealth1.my.salesforce.com",
"token_type": "Bearer",
"issued_at": "1716566138903",
"ResponseHeaders": {
"Date": "Fri, 24 May 2024 15:55:38 GMT",
"Set-Cookie": "CookieConsentPolicy=0:1; path=/; expires=Sat, 24-May-2025 15:55:38 GMT; Max-Age=31536000; secure;LSKey-c$CookieConsentPolicy=0:1; path=/; expires=Sat, 24-May-2025 15:55:38 GMT; Max-Age=31536000; secure;BrowserId=ENrFgBnmEe-_7qNw1875lg; domain=.salesforce.com; path=/; expires=Sat, 24-May-2025 15:55:38 GMT; Max-Age=31536000",
"Strict-Transport-Security": "max-age=63072000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Robots-Tag": "none",
"Cache-Control": "no-store, must-revalidate, no-cache, max-age=0, private",
"Vary": "Accept-Encoding",
"Transfer-Encoding": "chunked",
"Expires": "Thu, 01 Jan 1970 00:00:00 GMT",
"Content-Type": "application/json; charset=UTF-8"
},
"executionDuration": 0
}
INPUT OF WEB ACTIVITY 2
{
"method": "POST",
"headers": {
"Authorization": "Bearer 00D5Y000001bchT!AQEAQDaYCiIjOZKYySRwnpsY3CloFGzEiTc0abZNK60LiEtqJWnRAvEHwrX363RTqbqwNz.[rest of token]",
"Content-Type": "application/json",
"Accept": "application/json"
},
"relativeUrl": "/services/data/v51.0/jobs/query",
"body": {
"operation": "query",
"query": "SELECT Id FROM Account WHERE RecordType.Name <> 'Provider Account'"
}
}