-
Notifications
You must be signed in to change notification settings - Fork 4
"Temporary Redirect" Error when trying to retrieve metadata #32
Description
I have been trying to setup the package in a sandbox in my company. After struggling with the callback URL, I was able to configure the Oauth and ready to work. I gave my user the permission set included in the package and accesed the App Exec-Ray.
When trying to get the metadata, for example using the Refresh button or selecting an Object, I get the following error:
"Error. Temporary Redirect"
Steps to reproduce
- Create a sandbox.
- Install the package in the sandbox and configure the Auth Provider.
- Remember to give yourself the permission set just in case
- Go to Exec-Ray tab
- Try using the Refresh button
- Toas appears with error "Temporary Redirect"
I have been doing some research and this seems to be caused by receiving the status code 307 in the requestMetadata method in the ToolingApiFetcher class (line 64). I am not sure why the response is returning a redirect, but is either know why or add some lines to replace the endpoint by the one indicated in the Location header of the response. (https://salesforce.stackexchange.com/questions/136811/httpcallout-error-statuscode-302)
I will try to attach the debug log so you can inspect it.