All Questions
Tagged with calloutexception namedcredentials
5 questions
0
votes
2
answers
130
views
How to catch "System.UnexpectedException: Unable to fetch the OAuth token."
I have a Queueable class that makes a callout using Named Credentials. Sometimes I get
System.UnexpectedException: Unable to fetch the OAuth token.
I surrounded the send method with try/catch block
...
0
votes
0
answers
205
views
Get Presigned URL using named credentials
I successfully obtained the pre-signed URL to upload large file to aws s3 bucket using the method described in the article https://mtr-design.com/news/how-to-create-a-presigned-url-for-aws-s3-using-...
0
votes
0
answers
1k
views
Named callout Null in http request with named credential - What would cause it?
I am making a callout and getting the error
"System.CalloutException: The callout couldn't access the endpoint. You might not have the required permissions, or the named credential "XXX"...
1
vote
1
answer
6k
views
Named Credential Permission Error - How to enable named credentials with "Named Principal"
I've got a new named credential setup using an OIDC auth provider and the named principal type. It's authenticated successfully but when I try to call it I get
String namedCredential = 'callout:asdf';
...
1
vote
1
answer
4k
views
Apex callout Unable to tunnel through proxy. 403 forbidden. Using Named Credentials; works fine in curl
Given:
Apex Callout (POST) to an in-house REST service
Named credentials
Authorization headers are correct
URL is correct
Verified working using curl
When:
Invoked using execute anonymous or ...