Skip to content

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

@jacintohyd

Description

@jacintohyd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions