You need to sign in to do that
Don't have an account?
Ankit Gupta SFDCLearner
Raw Response HTTP/1.1 404 Not Found
Below is an error which I am getting while testing my rest api on workbench
Error:
Raw Response
HTTP/1.1 404 Not Found
Below is my rest class.
/* selflearning is a namespace of my org*/
@RestResource(urlMapping='/selflearning__/accessPobject/*')
global class restServicePObj
{
@HttpGet
global Static List<selflearning__Pobject__c> getPobjectDetails()
{
return[select id,Name from selflearning__Pobject__c];
}
}
Please help me/guide me how I can do this in a right way.
Error:
Raw Response
HTTP/1.1 404 Not Found
Below is my rest class.
/* selflearning is a namespace of my org*/
@RestResource(urlMapping='/selflearning__/accessPobject/*')
global class restServicePObj
{
@HttpGet
global Static List<selflearning__Pobject__c> getPobjectDetails()
{
return[select id,Name from selflearning__Pobject__c];
}
}
Please help me/guide me how I can do this in a right way.
This error is because the external system you are trying to integrate with blocks the calls made from within Salesforce due to their security settings. The firewall of the system doesn’t let your request reach the system so it cannot send the response back. You would need to contact the administrator of the external system and ask them to whitelist Salesforce so the callout requests do not get blocked.
https://help.salesforce.com/articleView?id=000321501&type=1&mode=1(Salesforce IP Addresses and Domains to Allow)
https://salesforce.stackexchange.com/questions/33543/system-calloutexception-unable-to-tunnel-through-proxy-proxy-returns-http-1-0
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar