Skip to main content 3월 5~6일에 샌프란시스코의 TDX 또는 Salesforce+에서 열리는 AI 에이전트 시대를 위한 개발자 컨퍼런스에 참여하세요. 지금 등록하기.

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개
  1. 2024년 11월 7일 오후 9: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. 2024년 11월 11일 오후 11: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. Divya Chauhan (Kcloud Technologies) Forum Ambassador
    2024년 11월 8일 오전 5: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. 2024년 11월 8일 오전 12: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. 2024년 11월 7일 오후 10: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. 2024년 11월 7일 오후 9: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