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:
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.
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 !
Divya Chauhan (Kcloud Technologies) Forum Ambassador
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.
- For the remote site name, enter animals_http.
- For the remote site URL, enter https://th-apex-http-callout.herokuapp.com.
- For the description, enter "Trailhead animal service: HTTP".
- Click Save & New.
2) For the second remote site name, enter animals_soap.
- For the remote site URL, enter https://th-apex-soap-service.herokuapp.com.
- For the description, enter "Trailhead animal service: SOAP".
- Click Save.
Please check,
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.
The similar issue has been reported, but it doesn't seem to be resolved.
https://trailhead.salesforce.com/trailblazer-community/feed/0D5KX000000mVIg
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
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