tindetheus icon indicating copy to clipboard operation
tindetheus copied to clipboard

New Error

Open holdenjrussell opened this issue 5 years ago • 8 comments

Why would this be happening?

Traceback (most recent call last): File "/opt/anaconda3/bin/tindetheus", line 10, in sys.exit(command_line_run()) File "/opt/anaconda3/lib/python3.7/site-packages/tindetheus/tindetheus.py", line 299, in command_line_run retries=defaults['retries']) File "/opt/anaconda3/lib/python3.7/site-packages/tindetheus/tindetheus.py", line 82, in main likes_left=args.likes, x_auth_token=x_auth_token) File "/opt/anaconda3/lib/python3.7/site-packages/tindetheus/tinder_client.py", line 95, in init self.session.profile.distance_filter = self.search_distance File "/opt/anaconda3/lib/python3.7/site-packages/pynder/models/me.py", line 32, in set instance.init(instance._api.update_profile(profile), instance._api) File "/opt/anaconda3/lib/python3.7/site-packages/pynder/api.py", line 98, in update_profile return self._post("/profile", profile) File "/opt/anaconda3/lib/python3.7/site-packages/pynder/api.py", line 63, in _post return self._request("post", url, data=data) File "/opt/anaconda3/lib/python3.7/site-packages/pynder/api.py", line 54, in _request raise errors.RequestError(result.status_code) pynder.errors.RequestError: 500

holdenjrussell avatar Dec 26 '19 19:12 holdenjrussell

Are you still having this issue? It looks like you were able to log in and see your name, but the error occurred when trying to set the search distance?

cjekel avatar Dec 28 '19 20:12 cjekel

Yeah still having the same issue

holdenjrussell avatar Jan 11 '20 19:01 holdenjrussell

@cjekel here is the error I'm getting when running inside docker root@43d8a0973cb0:/mnt/tinder# tindetheus browse Hello Holden Traceback (most recent call last): File "/usr/local/bin/tindetheus", line 10, in sys.exit(command_line_run()) File "/usr/local/lib/python3.6/dist-packages/tindetheus/tindetheus.py", line 268, in command_line_run main(args, defaults['facebook_token'], defaults['XAuthToken']) File "/usr/local/lib/python3.6/dist-packages/tindetheus/tindetheus.py", line 62, in main likes_left=args.likes, x_auth_token=x_auth_token) File "/usr/local/lib/python3.6/dist-packages/tindetheus/tinder_client.py", line 95, in init self.session.profile.distance_filter = self.search_distance File "/usr/local/lib/python3.6/dist-packages/pynder/models/me.py", line 32, in set instance.init(instance._api.update_profile(profile), instance._api) File "/usr/local/lib/python3.6/dist-packages/pynder/api.py", line 98, in update_profile return self._post("/profile", profile) File "/usr/local/lib/python3.6/dist-packages/pynder/api.py", line 63, in _post return self._request("post", url, data=data) File "/usr/local/lib/python3.6/dist-packages/pynder/api.py", line 54, in _request raise errors.RequestError(result.status_code) pynder.errors.RequestError: 500

holdenjrussell avatar Jan 17 '20 05:01 holdenjrussell

Okay that's strange. You are able to login, but not update your search distance.

Are you able to look at user profiles? Running something like the following would tell if you are able to like profiles.

import itertools
import pynder
XAuthToken='.....'
session = pynder.Session(XAuthToken=XAuthToken)
users = session.nearby_users()
for user in itertools.islice(users, 5):
    print(user.like())

cjekel avatar Jan 17 '20 16:01 cjekel

@cjekel this is what I got root@f010d7598315:/mnt/tinder# python Python 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license" for more information.

import itertools import pynder XAuthToken='' session = pynder.Session(XAuthToken=XAuthToken) users = session.nearby_users() for user in itertools.islice(users, 5): ... print(user.like()) ... False False False False False

holdenjrussell avatar Jan 17 '20 16:01 holdenjrussell

Okay so you can see users. Do you get the 500 error if you manually set a search distance?

import itertools
import pynder
XAuthToken='.....'
session = pynder.Session(XAuthToken=XAuthToken)
session.profile.distance_filter = self.search_distance

If this gives you a 500, I don't know what's going on. It seems that you can't update your tinder profile. If this is the case, you'll need to control the search distance from however you logged in.

The unfortunate thing here is that tindetheus heavily exploits being able to update this search distance. We will need to add an option which will prevent these lines from being executed:

self.session.profile.distance_filter = ...

For now commenting out all of the above lines in tinder_client.py will be a dirty fix...

cjekel avatar Jan 17 '20 21:01 cjekel

@cjekel here is the error I'm getting when running inside docker

I haven't updated tindetheus on docker in a while. I still need to add a dockerfile which will make maintaing the docker setup much easier https://github.com/cjekel/tindetheus/issues/21

cjekel avatar Jan 17 '20 21:01 cjekel

Seems that you weren't the only one getting the 500 error on the distance update... Perhaps we should add an option in the config to disable the distance updates? https://github.com/cjekel/tindetheus/issues/12

cjekel avatar Jan 19 '20 19:01 cjekel