Skip to main content Rejoignez-nous lors de l'événement TDX à San Francisco ou sur Salesforce+ les 5 et 6 mars pour la conférence des développeurs à l'ère des agents IA. Inscrivez-vous dès maintenant.

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 réponses
  1. 7 nov. 2024, 21:43

    Hi ,

     

    I saw a post with the same error the past few days. something may be wrong

    I encourage you to get help from the Trailhead support team.

  2. 11 nov. 2024, 23:38

    Hi @Sravya Kummari I am a member of Trailhead Help, Could you please let us know if you have followed the above suggestion and the issue is resolved? If yes, please mark that response as the best answer which helped you to resolve and close this thread. 

     

    If you are still facing any issues with this unit please let us know so that we can check and assist further.

     

    Looking forward to your response :)

     

    Thank you !

  3. 8 nov. 2024, 05:14

    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
  4. 8 nov. 2024, 00:13

    Hi ,

     

    Workaround

     

    1. Use API Version 37 or Lower

      - When making the REST API request, set the API version to v37.0 or lower. 

      - Update your endpoint to reflect this version:

     

    Endpoint: https://{mydomain}/services/data/v37.0/tooling/sobjects/StaticResource

     

    2. Create the Static Resource from the Salesforce UI

      - Instead of using the API, log in to your Salesforce org.

      - Navigate to Setup > Static Resources.

      - Click New to create the static resource directly through the UI. 

     

    Not able to create/update StaticResources through tooling api with version 38.0 & above. 

    https://issues.salesforce.com/issue/a028c00000zilvAAAQ/not-able-to-createupdate-staticresources-through-tooling-api-with-version-380-above

  5. 7 nov. 2024, 22:10

    i have created the static resource from setup in the previous module of the unit. for this unit  Apex Rest Callouts, they are mentioning to create a static resource using JSON formatted string to use the GET request in the developer console, when i was doing the steps mentioned, then i got the error

  6. 7 nov. 2024, 21:49
    Hi, Yes you check with support but to create static resource why you using developer console, you can create it in setup. If not work you can create new playground so this issue will not occurred. All the best
0/9000