function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aneesha SAneesha S 

Trailhead Apex Integration Services - Apex REST Callouts

Hello Guys,

I am facing some issue validating the challenge for APEX REST Callout trailhead. The code works fine while testing with mock response. Looking at the debug shows that the callout to https://th-apex-http-callout.herokuapp.com/animals/:id is returning just a static response with blank name for any id provided. SF is tying to validate with a random integer id and assert with an actual value. Any suggestions?

 
Best Answer chosen by Aneesha S
Aneesha SAneesha S
Issue resolved. There was a slight issue in the endpoint. Took out : from trailhead endpoint https://th-apex-http-callout.herokuapp.com/animals/:id and now it works.

All Answers

Aneesha SAneesha S
Issue resolved. There was a slight issue in the endpoint. Took out : from trailhead endpoint https://th-apex-http-callout.herokuapp.com/animals/:id and now it works.
This was selected as the best answer