Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

Making a GET api call and getting the 404 error

Asma Khalil
Tera Contributor

when i make a get call i am getting the following response ,
with error code 404
{
"message":"no Route matched with those values",
"request_id":"c8cd112d029a3f2fbb34713f99f4f622"
}

3 REPLIES 3

sandeepdutt
Tera Patron

Hi @Asma Khalil ,

by the error it looks like is not the typical ServiceNow REST API error. It is more commonly returned by API gateways or third-party services when the requested route doesn't exist.

 

Thanks,
Sandeep Dutta

Please mark the answer correct & Helpful, if i could help you.

Ankur Bawiskar
Tera Patron

@Asma Khalil 

which API you are consuming?

Did you try consuming the API endpoint from postman?

what type of authentication are you using?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Tanushree Maiti
Tera Patron

Hi @Asma Khalil 

 

A possible reason for the no Route matched with those values error  are 

 

  • You entered an incorrect HTTP method in your request, such as using GET when it should have been POST.
  • You sent the request to an incorrect Endpoint/URL
  • Verify your endpoint URL exactly matches the documentation
  • Ensure you haven't forgotten the version prefix like /v2/ in the path .
  • If you are dynamically populating end point, Ensure extra / is not getting added in the end point . In one of my integration - I faced this issue.

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti