harbour-tooter icon indicating copy to clipboard operation
harbour-tooter copied to clipboard

Cannot log in

Open null-von-sushi opened this issue 6 years ago • 18 comments

Log in does not work.

  • I enter my instance
  • A webview shows up
  • I enter my login information and click okay
  • Webview disappears, and I am back on the screen where I filled out my instance

null-von-sushi avatar Nov 15 '18 03:11 null-von-sushi

I can confirm that with a Pleroma instance.

vinzv avatar Nov 15 '18 21:11 vinzv

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.

null-von-sushi avatar Nov 16 '18 07:11 null-von-sushi

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

vinzv avatar Nov 16 '18 08:11 vinzv

This might be the same I found in #40

tanghus avatar Dec 11 '18 23:12 tanghus

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

tanghus avatar Dec 12 '18 00:12 tanghus

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 :/

null-von-sushi avatar Dec 15 '18 22:12 null-von-sushi

I have a binary you can have.

tanghus avatar Dec 17 '18 19:12 tanghus

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

null-von-sushi avatar Dec 18 '18 05:12 null-von-sushi

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

tanghus avatar Dec 18 '18 22:12 tanghus

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 avatar Dec 19 '18 04:12 null-von-sushi

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 avatar Dec 19 '18 12:12 null-von-sushi

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 avatar Apr 19 '19 20:04 null-von-sushi

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.

null-von-sushi avatar Apr 24 '19 23:04 null-von-sushi

@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).

schaueho avatar Jul 01 '19 07:07 schaueho

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...

null-von-sushi avatar Jul 01 '19 19:07 null-von-sushi

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

dysk0 avatar Apr 15 '20 22:04 dysk0

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

carlosgonz0 avatar Apr 16 '20 18:04 carlosgonz0

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

carlosgonz0 avatar Apr 16 '20 18:04 carlosgonz0