• raSFUser
  • NEWBIE
  • 15 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 3
    Replies
Im hitting an issue calling a rest endpoint hosted internaly (but can be accessed externamly tested using postman), when preforming a callout from Salesforce apex i get the following error:

salesforce Unable to tunnel through proxy. Proxy returns HTTP/1.1 403 Forbidden

I have tested the endpoint using a variaty of aplications e.g. browsers, postman, java (camel routes) and encounter no issues, so the issue seems to be confined to Salesforce / setup.

The endpoint structure i am hitting is: https:/example.com:444/int/rest/users
 
private static HttpResponse callEndpont(String url, String method, String body, Integer timeout, Map<String,String> headers) {
        Http http = new Http();
        HttpRequest req = new HttpRequest();
        if (body != '') {
            req.setBody(body);
        }
        url = url.replace(' ', '%20');
        req.setEndpoint(url);
        req.setMethod(method);
        if (timeout != null) {
            req.setTimeout(timeout);
        }
        for (String key : headers.keySet()) {
            req.setHeader(key, headers.get(key));
        }
        
        HttpResponse resp;
        try {
            resp = http.send(req);
        }
        catch (Exception e) {
            throw new callException(e.getMessage());
        }
        
        return resp;
    }

Can anyone help me identify the problem here?

Thank you.

Hello i have toast messages that display to users based on diffrent rules, i need this test to be translatable / as well as allow overridable by system admins when the managed package is deployed.

I beleave Custom Metadata fields in conjunction with translation workbench will allow this but i have not idea how to retrieve the data in SOQL, could somone give me an example?

when i try the below all i get is an empty entry.

SELECT Label, ExampleNamespace__Ex_example_field__c FROM ExampleNamespace__Ex_example__mdt

 

I am currently trying to complete the trailhead 'Create a Hello World Lightning Web Component' section where you deploy the lightning web component from VSCode to your org, and im hitting the below error.

Starting SFDX: Deploy Source to Org

18:12:03.382 sfdx force:source:deploy --sourcepath c:\Users\ravent\Documents\SFDX Projects\HelloWorldLightningWebComponent\force-app\main\default --json --loglevel fatal
18:12:07.153 sfdx force:source:deploy --sourcepath c:\Users\ravent\Documents\SFDX Projects\HelloWorldLightningWebComponent\force-app\main\default --json --loglevel fatal ended with exit code 1

sf:UNSUPPORTED_API_VERSION: UNSUPPORTED_API_VERSION: Invalid Api version specified on URL

 

helloWorld error

As far as i can see i have followed the instructions to the letter, and cant seem to correct the error.

Any suggestions would be greatly appreachiated.