Skip to main content Join us at TDX in San Francisco or on Salesforce+ on March 5-6 for the Developer Conference for the AI Agent Era. Register now.

#Trailhead Challenges2,396 discussing

Hands-on challenges are the “secret sauce” of Trailhead. Before searching for solutions to superbadge challenges, review the Salesforce Certification Program Agreement and Policies.

Hello trailblazers,

I'm new at salesforce and i'm stuck in Rest Apax calls module :/

 

I'm getting this error :

Function indetected

 

 

This is a screenshot of my code for the AnimalLocator class :

 

Rest-call.png

I have saved my files and checked for typos.

 

In the same module, i'm required to add tests. I don't know if this is related to my error but I get this error when trying to save my AnimalLocatorTest :

 

Method does not exist or incorrect signature: void setMock(System.Type, AnimalLocatorMock) from the type test

 

Here's a screenshot of my Test class :

 

Test-class.png

I would appreciate some help with this one, because I'm out of ideas.

 

Thank you :)

 

 

#Trailhead Challenges

16 answers
  1. Dec 5, 2024, 12:10 PM

    Hi, @Abdelhamid Boukadida 

     

    Try to use English as a main Language for your SF Org and Trailhead website.

     

    Also too, make sure if you type correct parameters for this settings:

     

    Final view:3.jpg

    Sincerely, 

    Mykhailo Vdovychenko 

    Bringing Cloud Excellence with IBVCLOUD OÜ

0/9000

No Remote Site named ‘animals_http’ was found with the correct Name, URL, and Description.

what can i do? i already tried many methods. but it does not work

 

#Trailhead Challenges

5 comments
  1. Nov 29, 2024, 2:20 PM

    Hi, @Gopika S

     

    Click Gear Icon --> Setup in the search field type "remote" and select Remote Site Settings.

    Then, click New Remote Site.Hi, Click Gear Icon --> Setup in the search field typeRemote Site Name: animals_http

    Remote Site URL: https://th-apex-http-callout.herokuapp.com

    Description: Trailhead animal service: HTTP2.jpgClick Save & New

    Remote Site Name: animals_soap

    Remote Site URL: https://th-apex-soap-service.herokuapp.com

    Description: Trailhead animal service: SOAP3.jpg

    Sincerely, 

    Mykhailo Vdovychenko 

    Bringing Cloud Excellence with IBVCLOUD OÜ

0/9000

I have defined endpoint in remote site setting still getting error No Remote Site named ‘animals_http’ was found with the correct Name, URL, and Description. please check screenshot and kindly help.

 

#Trailhead Challenges  #Trailhead

5 answers
  1. Dec 28, 2023, 1:41 AM

    Hi @Vivek Singh ,

     

    just Add both Remote site settings in your org in the previous module we perform this task  https://trailhead.salesforce.com/content/learn/modules/apex_integration_services/apex_integration_callouts

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000HECRvSAP

0/9000
5 answers
  1. Jul 8, 2022, 11:21 AM

    Hi

    Vijayakumar M

     just Add both Remote site settings in your org in the previous module we perform this task  https://trailhead.salesforce.com/content/learn/modules/apex_integration_services/apex_integration_callouts

     and Check the challenge  for more help check the below link

    https://www.youtube.com/watch?v=QdCgyI4Yk2Q

     

    Thanks!

0/9000

I am working on the Apex Integration Services-Apex rest Callouts module. When i am creating the File|New|Static resource for name enter GetAnimalResource and MIME type is text/plain, i am getting the below error:

Apex REST Callouts

 

#Trailhead Challenges

8 answers
  1. Divya Chauhan (Kcloud Technologies) Forum Ambassador
    Nov 8, 2024, 5:14 AM

    Hello@Sravya Kummari,

    • check Prework: Be sure the Remote Sites from the first unit are set up.
    • Follow below steps and create two remote site settings. Do NOT forget to add Description.

    1) Click New Remote Site.

    2) For the second remote site name, enter animals_soap.

    Please check,

    1. https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4EqzSAF
0/9000