Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Temporary Redirect" Error when trying to retrieve metadata #32

Open
jacintohyd opened this issue Jul 11, 2022 · 0 comments
Open

"Temporary Redirect" Error when trying to retrieve metadata #32

jacintohyd opened this issue Jul 11, 2022 · 0 comments

Comments

@jacintohyd
Copy link

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

  1. Create a sandbox.
  2. Install the package in the sandbox and configure the Auth Provider.
  3. Remember to give yourself the permission set just in case
  4. Go to Exec-Ray tab
  5. Try using the Refresh button
  6. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant