kachnitel / RideTime

Mountain bike social riding app
4 stars 0 forks source link

App getting stuck on "Getting token..." After login from home screen icon #68

Closed kachnitel closed 4 years ago

kachnitel commented 4 years ago
 Dec 04 14:34:17 RideTime-server-app.log app.log {"message":"Using token from request header","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:17.852933","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:17 RideTime-server-app.log app.log {"message":"POST /signin","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:17.853895","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:17 RideTime-server-app.log app.log {"message":"Request stats","context":{"request":"POST /signin","query":[],"serverParams":{"REQUEST_URI":"/signin","REMOTE_ADDR":"172.218.208.42"},"executionTime":0.04422807693481445,"resources":{"stime":"4ms","utime":"38ms"},"requestStats":{"trailforks":{"count":0,"time":0}}},"level":200,"level_name":"INFO","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:17.902319","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:18 RideTime-server-app.log app.log {"message":"Using token from request header","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:18.530800","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:18 RideTime-server-app.log app.log {"message":"GET /dashboard","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:18.531739","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:18 RideTime-server-app.log app.log {"message":"Request stats","context":{"request":"GET /dashboard","query":[],"serverParams":{"REQUEST_URI":"/dashboard","REMOTE_ADDR":"172.218.208.42"},"executionTime":0.04500603675842285,"resources":{"stime":"4ms","utime":"39ms"},"requestStats":{"trailforks":{"count":0,"time":0}}},"level":200,"level_name":"INFO","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:18.581070","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:21 RideTime-server-app.log app.log {"message":"Using token from request header","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:21.778239","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:21 RideTime-server-app.log app.log {"message":"PUT /notifications/token","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:21.779223","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:21 RideTime-server-app.log app.log {"message":"Request stats","context":{"request":"PUT /notifications/token","query":[],"serverParams":{"REQUEST_URI":"/notifications/token","REMOTE_ADDR":"172.218.208.42"},"executionTime":0.03945612907409668,"resources":{"stime":"4ms","utime":"34ms"},"requestStats":{"trailforks":{"count":0,"time":0}}},"level":200,"level_name":"INFO","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:21.822969","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:23 RideTime-server-app.log app.log {"message":"Using token from request header","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:23.625301","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:23 RideTime-server-app.log app.log {"message":"GET /dashboard","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:23.626218","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:23 RideTime-server-app.log app.log {"message":"Request stats","context":{"request":"GET /dashboard","query":[],"serverParams":{"REQUEST_URI":"/dashboard","REMOTE_ADDR":"172.218.208.42"},"executionTime":0.04433703422546387,"resources":{"stime":"4ms","utime":"38ms"},"requestStats":{"trailforks":{"count":0,"time":0}}},"level":200,"level_name":"INFO","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:23.674806","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:24 RideTime-server-app.log app.log {"message":"Using token from request header","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:24.308009","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:24 RideTime-server-app.log app.log {"message":"PUT /notifications/token","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:24.308913","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:24 RideTime-server-app.log app.log {"message":"Request stats","context":{"request":"PUT /notifications/token","query":[],"serverParams":{"REQUEST_URI":"/notifications/token","REMOTE_ADDR":"172.218.208.42"},"executionTime":0.03583097457885742,"resources":{"stime":"4ms","utime":"31ms"},"requestStats":{"trailforks":{"count":0,"time":0}}},"level":200,"level_name":"INFO","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:24.348780","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:24 RideTime-server-app.log app.log {"message":"Using token from request header","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:24.893684","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:24 RideTime-server-app.log app.log {"message":"GET /api/users/4","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:24.894575","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:24 RideTime-server-app.log app.log {"message":"Request stats","context":{"request":"GET /api/users/4","query":[],"serverParams":{"REQUEST_URI":"/api/users/4","REMOTE_ADDR":"172.218.208.42"},"executionTime":0.046102046966552734,"resources":{"stime":"5ms","utime":"39ms"},"requestStats":{"trailforks":{"count":0,"time":0}}},"level":200,"level_name":"INFO","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:24.944977","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:25 RideTime-server-app.log app.log {"message":"Using token from request header","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:25.820095","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:25 RideTime-server-app.log app.log {"message":"GET /api/events/invites","context":[],"level":100,"level_name":"DEBUG","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:25.820989","timezone_type":3,"timezone":"UTC"},"extra":[]}
 Dec 04 14:34:25 RideTime-server-app.log app.log {"message":"Request stats","context":{"request":"GET /api/events/invites","query":[],"serverParams":{"REQUEST_URI":"/api/events/invites","REMOTE_ADDR":"172.218.208.42"},"executionTime":0.03907179832458496,"resources":{"stime":"4ms","utime":"34ms"},"requestStats":{"trailforks":{"count":0,"time":0}}},"level":200,"level_name":"INFO","channel":"ridetime","datetime":{"date":"2019-12-04 22:34:25.864271","timezone_type":3,"timezone":"UTC"},"extra":[]}
kachnitel commented 4 years ago

Doesn't seem to be an issue on Xperia Z2 w/ Android 6.0.1 Reproduced the same way

kachnitel commented 4 years ago

Deleting user at Auth0, app cache/data doesn't fix it. Issue present with both Google and FB login

kachnitel commented 4 years ago

Added logging to app, testing further.

kachnitel commented 4 years ago

https://github.com/kachnitel/RideTime/commit/2e0b6c2ccd8d0000da0ef40c10b618aab940e167#diff-129f50630cc30faba501d4a318aa8ebaR66

This definitely gets stuck for no apparent reason. When the deployed app gets stuck, it appears to always have {type: dismiss} even though it should have been a successful authentication.

kachnitel commented 4 years ago

Behavior is different between launching the app between screen icon and from expo app - from expo it seems to work fine

kachnitel commented 4 years ago

After stuck login and reloading the app from Expo app, it does load but requires login on the next app start again.

kachnitel commented 4 years ago

Cannot reproduce in https://github.com/kachnitel/RideTime/releases/tag/0.5.20