• Pratap Demo
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Hi All,

I am facing an issue when we are making a rest API call out from external system to SF(Managed Package). It throws below error : 
{"errorCode":"NOT_FOUND","message":"Could not find a match for URL"}

But after certain timeframe without making any changes the same request start working. 

URL for the request looks fine when it is failing. And if i enable the debug logs for the user i don't see logs also getting generated. 

For making a call from external server we using Connected app with Integration user.
Hi All,

I am facing an issue when we are making a rest API call out from external system to SF(Managed Package). It throws below error : 
{"errorCode":"NOT_FOUND","message":"Could not find a match for URL"}

But after certain timeframe without making any changes the same request start working. 

URL for the request looks fine when it is failing. And if i enable the debug logs for the user i don't see logs also getting generated. 

For making a call from external server we using Connected app with Integration user.

Here's the Apex REST class:

@RestResource(urlMapping='/abc/def/*')
global with sharing class TheRESTclass
{
  @HttpGet
  global static String doGet(RestRequest req, RestResponse res)
  { return 'hello'; }
}

 

From the Apigee Salesforce console, I call the following URL (using OAuth authentication):

https://na7.salesforce.com/services/apexrest/abc/def

 

I've also tried it with the namespace in there:

https://na7.salesforce.com/services/apexrest/namespace/abc/def

 

But I keep getting this error:

 "message": "Could not find a match for URL /namespace/abc/def", "errorCode": "NOT_FOUND"

 

I've looked at multiple tutorials and they all guided me in the same direction. So I don't know what I could be possibly missing. Do I need to comfigure Remote Site Settings or do any other type of configuration?

 

Thanks in advance.