Questions tagged [calloutexception]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
41 views

Need to specify full name, Current Name: Id, Required Delimiter

In the below code I am trying to Assign Object and field permissions using metadata API. When I run the below apex class and trying to assign read permission on the field, I am running in to below ...
0
votes
0answers
80 views

Unexpected end of file from server

after sending http request from the anonymous apex HttpRequest httpRequest = new HttpRequest(); httpRequest.setHeader('Content-Type', 'application/json'); httpRequest.setHeader('Content-Length', '...
0
votes
0answers
25 views

How can I find out what “uncommitted work” is allegedly pending?

I have two schedulable batch processes, identical in every way except one is for Opportunity and the other is for Appointment__c. In real life, both batch processes work exactly as expected, which is ...
1
vote
2answers
229 views

System.CalloutException: Script-thrown exception from HTTP class

I am need some help. I create one integration to ERP and before yesterday the integration working fine. But yesterday it's fail and the stack trace give me this information: I think it's because the ...
0
votes
0answers
15 views

403 error on callout to service ran locally [duplicate]

I have a service I'm running in a docker container locally, listening in port 8000. The service is non http secured. I'm trying to send a GET request from my apex code to the service and getting an ...
0
votes
0answers
42 views

In Platform Event subscription using Process Builder subscription used for callout. It's giving "uncommitted work pending' intermittently

We are facing this issue intermittently. Out of 100 subscription callouts, 95 of them are working fine. Before we were getting this issue more frequently when we were using a single process builder to ...
0
votes
1answer
36 views

System.CalloutException when making Apex Callout

I have a Apex Callout like bellow which calls the external System API with OAuth2. I am trying to use the Access token if it hasnt expired and generate one if it is expired and store into a encrypted ...
1
vote
1answer
82 views

What is the reason behind uncommitted work pending issue in the callout?

I am getting uncommitted work pending issue in my test class but Limits.getDMLStatements() says there are 0 DML performed before and after callout. What else could cause this issue? Code is ...
0
votes
1answer
27 views

Batch callout error: Call out made it firstbefore DML

I have review similar questions, and all of them mention to do API before any DML similar question 1 and similar question 2 However, I am trying to do the API in the excecute, and I am still getting ...
0
votes
0answers
29 views

Getting Error: System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out [duplicate]

I'm getting the Error stated in the title above in my code. The method is run in a flow that passes a newly created opportunity id to it. Here's the code: global class NewOppUTS { @InvocableMethod(...
0
votes
1answer
823 views

The following exception has occurred: IO Exception: Unable to tunnel through proxy. Proxy returns “HTTP/1.1 503 Service Unavailable”

We have a batchable Apex job (process) where we call an external web service for some Accounts. It starts and service is called. Then, for some records it we get the error : Unable to tunnel through ...
1
vote
0answers
207 views

Web service callout failed: WebService returned a SOAP Fault: System.Web.Services.Protocols.SoapException: Server was unable to process request

I am new to Integration Projects. I have an Apex class generated from the WSDL of a third party. I would like to utilize the methods of that Apex class and write a batch class that utilizes the ...
0
votes
1answer
73 views

When method called 2 times: Uncommitted work pending. please commit or rollback before calling out

I have a method: public static CreateUpdateAPI (Account acc) { //do WS callout //perform DML } When i call it from Anonymous console with one Account it runs properly. But when i call the ...
2
votes
1answer
396 views

Unauthorized endpoint when calling Metadata API from Apex in @future

I am running into the exception IO Exception: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://eu25.salesforce.com/services/Soap/m/42.0 when ...
2
votes
0answers
141 views

In a test class example of a Post Install script, sending an email and scheduling a class that performs an API callout

Scenario: In my example, as a part of the PostInstall (class implements InstallHandler) script I will be performing two actions; - sending an email to the installing User for the express purpose of ...
1
vote
0answers
54 views

HTTP CalloutException in Summer '19 sandboxes

Yesterday I started experiencing intermittent but frequent errors with HTTP callouts using Named Credentials in Apex in multiple sandboxes (all Summer '19 preview instances). These same callouts had ...
1
vote
0answers
34 views

Why is this a Callout loop?

When a customer buys my app from AppExchange, Salesforce creates a new Lead in my Partner Business Org (PBO), with lead source set to "Package Install". When that happens, I have written automation to ...
0
votes
2answers
1k views

Yahoo API callout failing

Below code was working fine few days back. Suddenly stopped working and throws error. String endPoint = 'https://query.yahooapis.com/v1/public/yql?q='; String queryUrl = 'select item.condition from ...
0
votes
0answers
250 views

@future method not getting called from catch block

I am calling a webservice (synchronous) and in case of CalloutException, I'm trying to create an error log in a custom object. The problem is, the record insertion is happening in a future method and ...
5
votes
3answers
1k views

Confused by CalloutException

I have a trigger on Account and Opportunity - both do a callout to the Google Geocoding API and then update itself using a future method. Now I also want to send an email before the update if certain ...
3
votes
1answer
1k views

Issue while uploading file greater than 5MB

I am trying to upload a file in salesforce and send it to Sharepoint for storage using synchronous call. However, when i upload file more than 5MB i am encountering an issue like below :' {FAILURE=...
0
votes
0answers
3k views

Anyone familiar with 'no protocol' CalloutException message, and addressing it?

I'm working a process involving third-party webservices, and have made it past the initial authorization hurdle but am running into a new problem. Regardless of whether the content-type is specified, ...