GithubHelp home page GithubHelp logo

Unexpected redirect about rtv HOT 10 CLOSED

michael-lazar avatar michael-lazar commented on May 28, 2024
Unexpected redirect

from rtv.

Comments (10)

Brobin avatar Brobin commented on May 28, 2024

What is your default subreddit set as in rtv.cfg?

from rtv.

Thimoteus avatar Thimoteus commented on May 28, 2024

I have subreddit=linux in my rtv.cfg.

from rtv.

Brobin avatar Brobin commented on May 28, 2024

It looks like this is an issue on login. Is your user/pass correct?

from rtv.

Thimoteus avatar Thimoteus commented on May 28, 2024

Yes, I use pass to manage passwords, so I just pasted it in.

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

Hi,
What version of praw are you running? Are you using any custom configuration settings for praw? (http://praw.readthedocs.org/en/latest/pages/configuration_files.html#configuration-variables)

from rtv.

Thimoteus avatar Thimoteus commented on May 28, 2024

Here's the output of pip show praw:

---
Metadata-Version: 2.0
Name: praw
Version: 2.1.21
Summary: PRAW, an acronym for `Python Reddit API Wrapper`, is a python package that allows for simple access to reddit's API.
Home-page: http://praw.readthedocs.org/
Author: Bryce Boe
Author-email: [email protected]
License: GPLv3
Location: /usr/lib/python3.4/site-packages
Requires: requests, update-checker, six

And here's my praw.ini. AFAIK it's the same as this one.

from rtv.

larryhynes avatar larryhynes commented on May 28, 2024

I've just ran into the same issue. After confirming that https://www.reddit.com/user/lhynes/about/.json does actually exist, I deleted lines 163 and 164 in ../python2.7/site-packages/praw/internal.py, i.e. delete

    elif not RE_RANDOM.search(response.url):
        raise RedirectException(response.url, new_url)

and now rtv launches fine, if that's of any use to anyone trying to track this down.

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

@larryhynes Thanks for the heads up! This is definitely sounding like a PRAW issue. It looks like PRAW is trying to hit http: instead of https to get user information and reddit is redirecting to the secure url. I encourage you to post an issue on praw-dev if you want to follow up on this.

from rtv.

larryhynes avatar larryhynes commented on May 28, 2024

A recent commit message on the praw github is titled 'enforce https everywhere', so if I had to guess they've introduced a redirect that isn't being handled well. I might post an issue there.

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

Closing because this is really a PRAW bug and a fix is upcoming.

from rtv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.