Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 29 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save rapatil/b269a347d50dc76b6fd29bec85889c28 to your computer and use it in GitHub Desktop.
Save rapatil/b269a347d50dc76b6fd29bec85889c28 to your computer and use it in GitHub Desktop.
Approach: Automating Salesforce Data Extraction Using Python
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AayushiTripathi146
Copy link

AayushiTripathi146 commented Feb 20, 2024

using your code pretty much verbatim for downloading a salesforce report I am getting a error thrown in requests: requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
Do you know if something has changed in the past couple months that would be causing so many redirects? If I copy sfUrl into a browser (that is also logged in) it does generate and download the report as expected...

I am also experiencing this redirect issue. Any one come up with a solution?

Copying sfUrl and pasting into browser works.

facing the same issue. any one knows how to deal with this?

update: try updating lightning.force to my.salesforce

@gillieo
Copy link

gillieo commented Feb 21, 2024

using your code pretty much verbatim for downloading a salesforce report I am getting a error thrown in requests: requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
Do you know if something has changed in the past couple months that would be causing so many redirects? If I copy sfUrl into a browser (that is also logged in) it does generate and download the report as expected...

I am also experiencing this redirect issue. Any one come up with a solution?
Copying sfUrl and pasting into browser works.

facing the same issue. any one knows how to deal with this?

> update: try updating lightning.force to my.salesforce

Yep! This is what worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment