Hi, I am working on the "Apex Integration Services" Module on the "Apex REST Callouts" unit. I need to create a Static Resource in the developers console:
File -> New -> Static Resource
I enter the Name (GetAnimalResource). select the MIME type:text/plain and when I press submit i get this error:
UNKNOWN_EXCEPTION
An unexpected error occurred. Please include this ErrorId if you contact support: 1345751719-421449 (1976928079).
I've tried with other browsers and playgrounds but got the same error always.
Can you help me?
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.