Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Instagram images not loading with caching enabled (403 error) #24

Open
TomAnthony opened this issue Mar 28, 2020 · 1 comment
Open

Instagram images not loading with caching enabled (403 error) #24

TomAnthony opened this issue Mar 28, 2020 · 1 comment

Comments

@TomAnthony
Copy link

I enabled caching and then things broke - I could see there was a 403 error trying to fetch images from Instagram. It took me a while, but it turns out that sorl-thumbnail removes URL parameters by default, which breaks requests to Instagram (not sure if this is a change from the past).

To fix this you need to add this to your settings:

THUMBNAIL_REMOVE_URL_ARGS = False
@thiagolara
Copy link

Hey @TomAnthony I'm facing the same issue, I tried to add this variable in my settings and it didn't work. The weird thing is that works only on localhost and not on the production server. Same for you when you had the problem?

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

No branches or pull requests

2 participants