Open clairity opened 7 years ago
this issue should be fixed on latest gem version (superior to 2.5.1 at least). It was an issue where the site was telling the agent to write a cookie but the gem was not following this directive. I would need to double check that this mechanism still works as expected
thanks!
i was using the latest v.3.3.0 and even tried tracking master directly in my Gemfile, but got the same results. i'm also on the latest ruby 2.4.1 and rails 5.1.0.rc1 if that matters.
i just tried downgrading to ruby 2.3.3 and rails 5.0.2, but that didn't help either.
in trying to get nytimes.com links working with link_thumbnailer, i stumbled onto a redirect issue that seems to have been addressed before but doesn't have enough context for me to understand how to work around now. if i go to an article via link_thumbnailer:
i get a
LinkThumbnailer::RedirectLimit: LinkThumbnailer::RedirectLimit
error. if i raise the redirect_limit to 15, i get a different (but still unwanted) response:so it seems that nytimes.com catches the redirect loop and breaks out of it by going to myaccount.nytimes com. if i curl the same url, i get
which implies i should follow the provided nytimes.com/glogin url, so if i curl that, i get
it leads me back to the original url, so i try curling that, but the results are the same as the first curl returned. this seems like the redirect loop that link_thumbnailer is getting caught in. from reading previous issues here, a missing cookie might be the problem, but i'm not familiar enough to know if that's true, and then how to fix it.
is this a bug you are already addressing? and is there any work arounds i can use now to get it working?
thanks!