Questions tagged [proxy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

LWC Object converted to Proxy [duplicate]

I am calling my Apex controller from connectedCallback and assigning a variable the value od data wich is returned by method. I am able to view the data when it is returned correctly in component but ...
Ishan's user avatar
  • 537
-1 votes
0 answers
48 views

Facing System.CalloutException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable [duplicate]

I'm having trouble with the API. I tried hitting the endpoint with Postman and the browser, and it worked great. However, when I try hitting the same endpoint from Salesforce using Apex and an HTTP ...
Kujambal R's user avatar
1 vote
1 answer
831 views

Why is `JSON.parse` returning a proxy object?

Because Lightning Web Components so often wrap objects in proxy objects, we long ago created a deProxyObj in order to be able to log to the console while debugging. const deProxyObj = (proxyObj) => ...
Chuck's user avatar
  • 877
0 votes
0 answers
359 views

How to Make an Apex Callout to a REST API via a Proxy Server?

I need to make a callout to a REST API from Apex. This API is accessed via a proxy server - I have the proxy server URL, port, username, and password. How do I construct my request in Apex such that ...
Scott Kostojohn's user avatar
6 votes
1 answer
3k views

Proxy on all Objects and Arrays logged in LWC - Salesforce

Good afternoon, Witnessing strange behavior today in the browser's developer console when logging objects and arrays from my lightning web component. All objects and arrays are being logged as "...
Blake's user avatar
  • 121
0 votes
1 answer
852 views

I try to do callout to my apex rest service from first to second dev org, but got CalloutException

String endPoint = 'https://wise-otter-ngj5eu-dev-ed.salesforce.com/services/apexrest/v1/getAccounts/'; Http h2 = new Http(); HttpRequest req1 = new HttpRequest(); req1.setHeader('Authorization','...
Ivan's user avatar
  • 13
0 votes
0 answers
434 views

How do I send data from a Proxy to a function in LWC?

I'm trying to send a data of a response in a function like function(response) in my LWC, but the response is a Proxy container with format like Proxy {}[[Handler]]: En[[Target]]: Array(0)[[IsRevoked]]:...
Cline's user avatar
  • 143
1 vote
1 answer
378 views

Track property do not work properly with Object methods

Setup: @track states = { first: true, second: false }; What I'm trying to achieve: I want to check if this.states has any true values. What I've tried Object.values(this.states).some(v => ...
Rechu's user avatar
  • 450
3 votes
1 answer
2k views

LWC optional chaining "array?.length' in expression causes output of "[object Object]"

Context: In my LWC, I have an array that may not be defined, and I want to check its length. So I use the optional chaining arr?.length to not error if the array is undefined. I also want to default ...
Andy Ray's user avatar
  • 1,409
1 vote
1 answer
383 views

Is it possible to make a synchronous upsert request for multiple records with Salesforce native Ids instead of external Ids?

I'm currently developing a system which, among other things, will act as a proxy for Salesforce's APIs. We may occasionally want/need to send a collection of new and updated data through the proxy ...
Brian Kessler's user avatar
0 votes
0 answers
234 views

What is lwc doing to custom ES6 Proxies?

The Problem: I am experiencing broken behavior when I pass Proxies as Event details or as public properties. Requirement: they need to wrap a {nested: {value: "Foo"}}. I experienced this ...
itsmebasti's user avatar
  • 6,359
1 vote
0 answers
3k views

Getting a 404 error while trying to connect backend Api from the Heroku deployed Angular Api

I have successfully deployed my angular app onto Heroku. I have implemented the proxy.conf.json file to connect to the Backend API (which is also deployed in Heroku and its a Java JAX-RS REST API) and ...
Sumitra Ojha's user avatar
0 votes
1 answer
168 views

Fetching data from Tempo API fails [closed]

I am trying to fetch data from Tempo API. I added and enabled Tempo URL in Remote Site settings. Now I am making a query to their API and it fails with error Unable to tunnel through proxy. Proxy ...
Eduard Mukans's user avatar
2 votes
1 answer
5k views

Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"

I'm perfoming a HTTP GET callout to an external cURL connected through proxy, using Postman i get the response. However, while making callout from Salesforce, it gives the following error: System....
Antonino Cupi's user avatar
5 votes
1 answer
1k views

How to bypass immutable proxy objects when using an external and old jquery library in LWC

Please note I'm fairly new to LWC and even SalesForce (like barely 2 weeks into it). I'm trying to use SlickGrid with LWC, note that this jQuery lib was created over 10 years ago, and I got that ...
ghiscoding's user avatar
2 votes
0 answers
259 views

Local LWC - Proxy Issue

Just getting into LWC and local development, so bear with me. Are there local LWC development proxy settings? I have been looking for a bit, but can't find anything. Basically, I'm getting the ...
Mike G.'s user avatar
  • 75
8 votes
1 answer
21k views

System.CalloutException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 503 Service Unavailable"

I'm trying to make an HTTP Request to other System. They provided the endpoint URL which contains a Port number. https://Test.com:50001/RESTAP/BGN/PRDV/CREATE When I'm trying to make the request I ...
Salvation's user avatar
  • 1,147
5 votes
3 answers
1k views

How to unproxy LockerService wrapped data for debugging via console.log()?

In Lightning Components I love to use console.log() to get an understanding what is happening. Often there is data shown as "Proxy{}", which looks in the console like this I KNOW that there is fine ...
Uwe Heim's user avatar
  • 28.3k