farooqkz / chooj

Matrix chat app for KaiOS feature phones supporting voice calls
74 stars 13 forks source link

Stuck on "Please wait" after login #12

Closed krutburken closed 1 year ago

krutburken commented 2 years ago

Not sure if I'm doing something wrong here, but I can't get past the "Please wait" screen after successful login. The only thing I can do is close the app.

This is on a Nokia 8110 4G

farooqkz commented 2 years ago

Hello! Can you explain more regarding this behavior? Like what commit did you try? And did you built it yourself or used nightly builds? Modified anything or not? Also if you can, connect it to WebIDE and post whatever console logs.

krutburken commented 2 years ago

Hey, thanks for the fast reply!

I built it from master an hour ago or so, but the nightly build behaves the same way. Nope, nothing has been modified.

I can try. I just started tinkering with KaiOS so I'm not sure how yet.

edit:

Inferno is in development mode.  
0.chunk.js:34808:3
Unhandled promise rejection TypeError: props.data.well_known is undefined
Stack trace:
Matrix@app://chooj.bananahackers.net/static/js/bundle.js:2498:7
createClassComponentInstance@app://chooj.bananahackers.net/static/js/0.chunk.js:33441:18
mountClassComponent@app://chooj.bananahackers.net/static/js/0.chunk.js:33660:18
mount@app://chooj.bananahackers.net/static/js/0.chunk.js:33511:5
replaceWithNewNode@app://chooj.bananahackers.net/static/js/0.chunk.js:33718:5
patch@app://chooj.bananahackers.net/static/js/0.chunk.js:33744:7
updateClassComponent@app://chooj.bananahackers.net/static/js/0.chunk.js:34107:5
applyState@app://chooj.bananahackers.net/static/js/0.chunk.js:34735:5
queueStateChanges@app://chooj.bananahackers.net/static/js/0.chunk.js:34665:9
setState@app://chooj.bananahackers.net/static/js/0.chunk.js:34789:5
["./src/App.js"]/App/<@app://chooj.bananahackers.net/static/js/bundle.js:667:9
["./node_modules/core-js/modules/es.promise.js"]/notify/<@app://chooj.bananahackers.net/static/js/0.chunk.js:18141:22
flush@app://chooj.bananahackers.net/static/js/0.chunk.js:10812:9

0.chunk.js:9736:49
    ["./node_modules/core-js/internals/host-report-errors.js"]/module.exports app://chooj.bananahackers.net/static/js/0.chunk.js:9736:49
    dispatchEvent app://chooj.bananahackers.net/static/js/0.chunk.js:18181:121
    ["./node_modules/core-js/modules/es.promise.js"]/onUnhandled/</result< app://chooj.bananahackers.net/static/js/0.chunk.js:18195:16
    ["./node_modules/core-js/internals/perform.js"]/module.exports app://chooj.bananahackers.net/static/js/0.chunk.js:11998:14
    ["./node_modules/core-js/modules/es.promise.js"]/onUnhandled/< app://chooj.bananahackers.net/static/js/0.chunk.js:18192:16
    <anonymous> app://chooj.bananahackers.net/static/js/0.chunk.js:13152:8
    run app://chooj.bananahackers.net/static/js/0.chunk.js:13120:5
    listener
farooqkz commented 2 years ago

check my last commit. It should've been fixed by now.

krutburken commented 2 years ago

Still the same error I'm afraid.

farooqkz commented 2 years ago

Are you sure? The exact same error?

krutburken commented 2 years ago

looks like the error is the same, but at another line in bundle.js:

Unhandled promise rejection TypeError: props.data.well_known is undefined
Stack trace:
Matrix@app://chooj.bananahackers.net/static/js/bundle.js:2507:7
createClassComponentInstance@app://chooj.bananahackers.net/static/js/0.chunk.js:33441:18
mountClassComponent@app://chooj.bananahackers.net/static/js/0.chunk.js:33660:18
mount@app://chooj.bananahackers.net/static/js/0.chunk.js:33511:5
replaceWithNewNode@app://chooj.bananahackers.net/static/js/0.chunk.js:33718:5
patch@app://chooj.bananahackers.net/static/js/0.chunk.js:33744:7
updateClassComponent@app://chooj.bananahackers.net/static/js/0.chunk.js:34107:5
applyState@app://chooj.bananahackers.net/static/js/0.chunk.js:34735:5
queueStateChanges@app://chooj.bananahackers.net/static/js/0.chunk.js:34665:9
setState@app://chooj.bananahackers.net/static/js/0.chunk.js:34789:5
["./src/App.js"]/App/<@app://chooj.bananahackers.net/static/js/bundle.js:667:9
["./node_modules/core-js/modules/es.promise.js"]/notify/<@app://chooj.bananahackers.net/static/js/0.chunk.js:18141:22
flush@app://chooj.bananahackers.net/static/js/0.chunk.js:10812:9

0.chunk.js:9736:49
    ["./node_modules/core-js/internals/host-report-errors.js"]/module.exports app://chooj.bananahackers.net/static/js/0.chunk.js:9736:49
    dispatchEvent app://chooj.bananahackers.net/static/js/0.chunk.js:18181:121
    ["./node_modules/core-js/modules/es.promise.js"]/onUnhandled/</result< app://chooj.bananahackers.net/static/js/0.chunk.js:18195:16
    ["./node_modules/core-js/internals/perform.js"]/module.exports app://chooj.bananahackers.net/static/js/0.chunk.js:11998:14
    ["./node_modules/core-js/modules/es.promise.js"]/onUnhandled/< app://chooj.bananahackers.net/static/js/0.chunk.js:18192:16
    <anonymous> app://chooj.bananahackers.net/static/js/0.chunk.js:13152:8
    run app://chooj.bananahackers.net/static/js/0.chunk.js:13120:5
    listener
farooqkz commented 2 years ago

Does this happen after your login is successful?

krutburken commented 2 years ago

Yes, right after "successfully logged in as <-username->"

farooqkz commented 2 years ago

Have you tried completely uninstalling the app and reinstalling it? Please try this. If you still had problems, try the latest commit, 4cb9a18. It prints your login data to Console. Then post output of the console here.

IMPORTANT! The login data will include your homeserver address, your access token and your user ID. Please black or asterisk them out for your own good.

farooqkz commented 1 year ago

Closing due to inactivity