hfreire / get-me-a-date

:heart_eyes: Help me get a :cupid: date tonight :first_quarter_moon_with_face:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

errors appear in the log

jsw7524 opened this issue · comments

At first, I want to appreciate contributors of this tool, thanks for your hard work.

When I try to use docker image, I find it is no response in http://localhost:5940/.
Then, I check the log shown below, there are several errors in the log

https://gist.github.com/jsw7524/2fe1c3e9aeecbb27b6587c64f4ac1359

I think Tinder may change webpage layout, so this tool cannot run properly.
if that is true, could you please fix that?

I'm trying to boot it and having the same issue. It's a bit unclear where exactly it is coming from. The tinder-wrapper uses the Tinder API directly, so it shouldn't be the cause of this.

I have found the location of the issue. It's in the facebook token dependency.
https://github.com/hfreire/facebook-login-for-robots/blob/master/src/facebook-login-for-robots.js#L85

https://github.com/Gyvastis/facebook-login-for-robots/blob/master/src/facebook-login-for-robots.js

Here's a working version. Just need to update the tests and make a PR and we should be good to go if @hfreire is responsive enough to merge and build the changes :)

As a workaround for now we can mount the updated file as a volume.
wget https://raw.githubusercontent.com/Gyvastis/facebook-login-for-robots/master/src/facebook-login-for-robots.js
docker run -p "5940:3000" -e "FACEBOOK_USER_EMAIL=***" -e "FACEBOOK_USER_PASSWORD=***" -e "AWS_REGION=***" -e "AWS_ACCESS_KEY_ID=***" -e "AWS_SECRET_ACCESS_KEY=***" -e "ROLLBAR_API_KEY=***" -v ./facebook-login-for-robots.js:/opt/get-me-a-date/node_modules/facebook-login-for-robots/lib/facebook-login-for-robots.js hfreire/get-me-a-date

Apparently there are more issues involved. After fetching userId & accessToken from Facebook it does not update it in the projects' database hence we don't see any details in the front-end (I assume that's what it happends as I can see the /channels endpoint returns invalid data for those values).