dysk0 / harbour-tooter

Mastodon is a free, open-source social network. A decentralized alternative to commercial platforms, it avoids the risks of a single company monopolizing your communication. Pick a server that you trust — whichever you choose, you can interact with everyone else. Anyone can run their own Mastodon instance and participate in the social network seamlessly.
http://grave-design.com/harbour-tooter/
GNU General Public License v3.0
19 stars 17 forks source link

Cannot log in #39

Open null-von-sushi opened 5 years ago

null-von-sushi commented 5 years ago

Log in does not work.

vinzv commented 5 years ago

I can confirm that with a Pleroma instance.

null-von-sushi commented 5 years ago

Oh, yeah same (I'm on explosion.party). Thing is, I assumed it should not matter as Pleroma aims to be compatible w. mastodon? I know that tusky on android worked without any issues, and that too is branded a 'mastodon' app.

vinzv commented 5 years ago

Yep, same API calls etc. Tusky works fine on that instance.

tanghus commented 5 years ago

This might be the same I found in #40

tanghus commented 5 years ago

I closed #40 and continue here instead.

I'm not sure if this is related.

If I start Tooter in a console, I am prompted for the address of a Mastodon instance. I then enter my credentials, but get a -username-or-password error.

Inspecting the output in the console, it shows that Tooter tries to connect to mastodon.social instead of the instance I use; freeradical.zone.

The - slightly shortened - output:

[D] :32 - db.version: 0.1
[D] :47 - READING CONF FROM DB
[D] :50 - loadImages     >       true
[D] :50 - id     >       "404023"
[D] :50 - name   >       "Tooter"
[D] :50 - website        >       "http://grave-design.com/harbour-tooter"
[D] :50 - redirect_uri   >       "http://localhost/harbour-tooter"
[D] :50 - client_id      >       "87e34a85f211b2dfe4afacb806a3097d8109a3778f283e34980d61e469f6de50"
[D] :50 - client_secret          >       "1ff213c7a24f2fbd2708769e8d24a23e66502ff3af83447a767c17afdfaca895"
[D] :50 - instance       >       "https://mastodon.social"
[D] :50 - login          >       false
[D] :50 - notificationLastID     >       null
[D] :53 - END OF READING
[D] :54 - {"loadImages":true,"id":"404023","name":"Tooter","website":"http://grave-design.com/harbour-tooter","redirect_uri":"http://localhost/harbour-tooter","client_id":"87e34a85f211b2dfe4afacb806a3097d8109a3778f283e34980d61e469f6de50","client_secret":"1ff213c7a24f2fbd2708769e8d24a23e66502ff3af83447a767c17afdfaca895","instance":"https://mastodon.social","login":false,"notificationLastID":null}
[D] :46 - confLoaded
[D] :176 - client_name=Tooter&redirect_uris=http://localhost/harbour-tooter&scopes=read write follow&website=http://grave-design.com/harbour-tooter
[D] :185 - Registered Application: {"id":"404032","name":"Tooter","website":"http://grave-design.com/harbour-tooter","redirect_uri":"http://localhost/harbour-tooter","client_id":"87205a94b34985c93b214fd437782199a8a91b6e62c45800f0b54abbc15ef55c","client_secret":"af606455f87becb39260755a6b3583314a98605ec26385ebd7dde788a079ada4"}
[D] :78 - {"id":"404032","name":"Tooter","website":"http://grave-design.com/harbour-tooter","redirect_uri":"http://localhost/harbour-tooter","client_id":"87205a94b34985c93b214fd437782199a8a91b6e62c45800f0b54abbc15ef55c","client_secret":"af606455f87becb39260755a6b3583314a98605ec26385ebd7dde788a079ada4"}
[D] :90 - {"id":"404032","name":"Tooter","website":"http://grave-design.com/harbour-tooter","redirect_uri":"http://localhost/harbour-tooter","client_id":"87205a94b34985c93b214fd437782199a8a91b6e62c45800f0b54abbc15ef55c","client_secret":"af606455f87becb39260755a6b3583314a98605ec26385ebd7dde788a079ada4","instance":"https://mastodon.social","login":false}
[D] :91 - {"id":"404032","name":"Tooter","website":"http://grave-design.com/harbour-tooter","redirect_uri":"http://localhost/harbour-tooter","client_id":"87205a94b34985c93b214fd437782199a8a91b6e62c45800f0b54abbc15ef55c","client_secret":"af606455f87becb39260755a6b3583314a98605ec26385ebd7dde788a079ada4","instance":"https://mastodon.social","login":false}
[D] :100 - https://mastodon.social/oauth/authorize?client_id=87205a94b34985c93b214fd437782199a8a91b6e62c45800f0b54abbc15ef55c&redirect_uri=http://localhost/harbour-tooter&response_type=code&scope=read+write+follow
[D] onLoadingChanged:139 - https://mastodon.social/oauth/authorize?client_id=87205a94b34985c93b214fd437782199a8a91b6e62c45800f0b54abbc15ef55c&redirect_uri=http://localhost/harbour-tooter&response_type=code&scope=read+write+follow
[D] onLoadingChanged:139 - https://mastodon.social/auth/sign_in
[D] onStatusChanged:40 - PageStatus.Activating
[D] checkNotifications:121 - checkNotifications
[D] onStatusChanged:45 - PageStatus.Inactive
[D] onLoadingChanged:139 - https://mastodon.social/auth/sign_in
null-von-sushi commented 5 years ago

Thanks for fixing. Do you know if/when this will hit either the Jolla store, or Open Repo, as I do not know how to compile Sailfish apps :/

tanghus commented 5 years ago

I have a binary you can have.

null-von-sushi commented 5 years ago

That would be even better, thanks :) Where would I be able to download this?

tanghus commented 5 years ago

Try https://cloud.tanghus.net/s/PXjqpEexFxS4WJS

null-von-sushi commented 5 years ago

Thanks. Unfortunately that version does not actually let my type anything into the login/instance field. It is recognized as a text field, but keyboard presses do not cause characters to appear.

Running harbour-tooter from terminal gives this output:

[nemo@Sailfish ~]$ harbour-tooter 
[D] unknown:0 - QML debugging is enabled. Only use this in a safe environment.
[D] unknown:0 - Using Wayland-EGL
[D] :32 - db.version: 0.1
[D] :47 - READING CONF FROM DB
[D] :50 - notificationLastID     >   0
[D] :53 - END OF READING
[D] :54 - {"notificationLastID":0}
[D] :46 - confLoaded
[W] unknown:0 - 
WARNING: This project is using the experimental QML API extensions for QtWebKit and is therefore tied to a specific QtWebKit release.
WARNING: The experimental API will change from version to version, or even be removed. You have been warned!

[W] unknown:0 - QQmlExpression: Expression file:///usr/lib/qt5/qml/Sailfish/Silica/SilicaWebView.qml:143:16 depends on non-NOTIFYable properties:
[W] unknown:0 -     QQuickWebViewExperimental::transparentBackground
[D] checkNotifications:121 - checkNotifications
[D] onStatusChanged:45 - PageStatus.Inactive
null-von-sushi commented 5 years ago

Actually, I have uninstalled Sailfish OS for now, so I won't be needing the file. Thanks though. Hopefully other users may benefit from the bugfix once a new version hits openrepo / Jolla Store.

null-von-sushi commented 5 years ago

Not sure if I am doing something wrong, but I still cannot log on. The Web authentication website does pop up, but entering my login info just makes it vanish and I am back at the part where I input my instance URL.

I ran harbor-tootler in a terminal and this was the output, hope it helps.

harbor-tooter.log

null-von-sushi commented 5 years ago

As a workaround, I managed to get it working myself. I have no idea why it works. I changed some really small unrelated stuff (a grammar mistake in the login screen and the mastodon instance example, as well as a print-to-output line that just mentions the client_id. Nothing that actually changes the login code) and now it works?

For those that have problems try downloading this repository and compiling it yourselves, or if that does not work you can try the exact same RPM that I used if you want.

schaueho commented 5 years ago

@dysk0 I think either this issue should be re-opened or a new one created. I had seem the same issue in the past but had somehow managed to login once, but was unable to do so on a new device. My logs looked different, though, I didn't get a 500 but a 400 status error (client error).

@null-von-sushi I can confirm that somehow your version works, whereas the current version (1.0.3) from openrepos.net does not (in fact, I had tried multiple versions going back to 0.2.7).

null-von-sushi commented 5 years ago

It worked for me to log in, but honestly it's kind of a mess to use: Clicking on a profile link sometimes opens up completely unrelated profiles and embedded images didn't work a lot of times.

Still, first step would be to make logins work properly.

Unfortunately I am not really a developer, otherwise I'd fork it seeing as this doesn't seem to be maintained anymore. As far as I understand, this is GPL2 so theoretically anyone can just continue working on it...

dysk0 commented 4 years ago

Hi there... I was away for some time. Sorry. Can you confirm that this is still an issue? It works for mastodon.social

carlosgonz0 commented 4 years ago

I have mastodon.social and is working good to log in.

carlosgonz0 commented 4 years ago

Maybe Tooter has issues to log in with some instances using qtwebkit5.212 from leszek?