fedistar icon indicating copy to clipboard operation
fedistar copied to clipboard

Can't log into my account

Open amycatgirl opened this issue 2 years ago • 24 comments

Hey there!

I can't sign to my account over at wetdry.world for some reason.

I assume that it should open the browser so I could authenticate with my account, but nothing has opened. Even after waiting for 10 minutes.

Other clients I've tried seem to not have issues logging into WDW

Other (hopefully useful) information

Fedistar version: 1.9.0 (Linux x86_64, Appimage) OS: Fedora Kinoite 39 (Using a custom image)

Note: I am launching the app through Gear Lever, which is a launcher/app manager for appimage files available on flathub.

amycatgirl avatar Mar 20 '24 12:03 amycatgirl

I assume that it should open the browser so I could authenticate with my account, but nothing has opened. Even after waiting for 10 minutes.

After you authenticate, what content is displayed?

h3poteto avatar Mar 20 '24 13:03 h3poteto

I can't authenticate

Screenshot_20240320_101110

It gets stuck on this screen

amycatgirl avatar Mar 20 '24 14:03 amycatgirl

Hmm, I can't reproduce it. The browser is opened, and the form is changed. Screenshot from 2024-03-21-00-18-20

h3poteto avatar Mar 20 '24 15:03 h3poteto

@amycatgirl Could you find the logs and paste them? https://fedistar.net/help

h3poteto avatar Mar 20 '24 15:03 h3poteto

Sure

2024-03-11T21:57:58.117448209Z [INFO] user streamings are kicked for all accounts
2024-03-11T21:58:28.441417265Z [INFO] The favicon for https://wetdry.world is Some(
    "https://wetdry.world/favicon.ico",
)
2024-03-11T21:58:29.022882024Z [INFO] The SNS for https://wetdry.world is mastodon
2024-03-11T22:01:22.473165612Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-11T22:01:30.287157904Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-11T22:01:36.778254978Z [INFO] The favicon for https://wetdry.world is Some(
    "https://wetdry.world/favicon.ico",
)
2024-03-11T22:01:37.3524358Z [INFO] The SNS for https://wetdry.world is mastodon
2024-03-11T22:03:21.130706059Z [INFO] user streamings are kicked for all accounts
2024-03-11T22:03:28.561512829Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-11T22:03:52.683995033Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-11T22:03:55.65047908Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-11T22:04:15.760358272Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-11T22:04:34.1453993Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-12T15:58:51.708456792Z [INFO] user streamings are kicked for all accounts
2024-03-12T15:58:58.178839818Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-20T12:14:15.783473412Z [INFO] user streamings are kicked for all accounts
2024-03-20T12:14:23.299521596Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-20T12:14:32.610136627Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-20T12:14:41.778733719Z [INFO] The favicon for https://wetdry.world is Some(
    "https://wetdry.world/favicon.ico",
)
2024-03-20T12:14:42.408398839Z [INFO] The SNS for https://wetdry.world is mastodon
2024-03-20T14:10:56.819521928Z [INFO] user streamings are kicked for all accounts
2024-03-20T14:11:00.555722959Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-20T14:12:08.382716471Z [ERROR] [front] no rows returned by a query that expected to return at least one row
2024-03-20T14:12:10.285717965Z [ERROR] [front] no rows returned by a query that expected to return at least one row

amycatgirl avatar Mar 20 '24 15:03 amycatgirl

Hmm, I can't reproduce it. I suspect this error

no rows returned by a query that expected to return at least one row

but, I'm not sure.

Do you have accounts for other servers? Can you log in to other servers?

h3poteto avatar Mar 21 '24 12:03 h3poteto

Tried using another account on another server, no luck

amycatgirl avatar Mar 23 '24 18:03 amycatgirl

I am going to try and remove fedistar's data directory

Just to see if that fixes the issue

amycatgirl avatar Mar 23 '24 21:03 amycatgirl

Yeah, that did not fix the issue

amycatgirl avatar Mar 23 '24 21:03 amycatgirl

That means the cause is not wetdry.world. You can't add any accounts. I will try adding more logs in the next release.

h3poteto avatar Mar 24 '24 02:03 h3poteto

Can you please try 1.9.1? https://github.com/h3poteto/fedistar/releases/tag/v1.9.1

This version supports log level config, please try

$ LOG_LEVEL=debug fedistar  
# If you are using AppImage, please try
$ LOG_LEVEL=debug fedistar_1.9.1_amd64.AppImage 

After that, debug level logs are recorded in the log file. Please share it.

h3poteto avatar Mar 25 '24 15:03 h3poteto

Sure, here is the log file fedistar.log

amycatgirl avatar Mar 25 '24 18:03 amycatgirl

Wow......

no rows returned by a query that expected to return at least one row

this error is gone...... And there is no error.

h3poteto avatar Mar 26 '24 13:03 h3poteto

Can you please try to open "Crash Report"? Help -> Crash Report in app menu.

h3poteto avatar Mar 26 '24 13:03 h3poteto

After selection the Crash Report button, the app crashes with the following error:

thread 'main' panicked at src/main.rs:648:22:
Failed to open the URL: Custom { kind: Other, error: "Launcher \"xdg-open\" \"https://fedistar.net/help#crash_reporting\" failed with ExitStatus(unix_wait_status(1024))" }

amycatgirl avatar Mar 26 '24 20:03 amycatgirl

Ah, I see. Probably, open module is not working in your environment.

h3poteto avatar Mar 27 '24 02:03 h3poteto

Can you please try this version? https://github.com/h3poteto/fedistar/releases/tag/v1.9.2

h3poteto avatar Mar 27 '24 16:03 h3poteto

I tried using the version you provided, still no luck

I've provided the error and the logs below

thread 'tokio-runtime-worker' panicked at src/main.rs:108:55:
Failed to open the URL: Shell("failed to open: Scoped shell IO error: Launcher \"xdg-open\" \"https://wetdry.world/oauth/authorize?response_type=code&client_id=5OhdqSHYrjfakifrEcZA5RmL9dwDW9eVq1l0BcRLcPk&state=ihi5TtS8taZ8qzJhJ1ia6w&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=read+write+follow\" failed with ExitStatus(unix_wait_status(1024))")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

fedistar.log

amycatgirl avatar Mar 28 '24 15:03 amycatgirl

Hmm...difficult. In this version, I used the open function of tauri-apps. That means open function is not working in your environment. I can temporarily skip this process, but open function is used in various places after you authenticate.

By the way, what happens if you execute xdg-open https://www.google.com/ in your terminal?

h3poteto avatar Mar 29 '24 13:03 h3poteto

It opened google. I also tried running xdg-open with the url that fedistar tried to open and it worked just fine.

Since I've switched distros recently (due to another unrelated issue), I'll try again.

amycatgirl avatar Mar 29 '24 15:03 amycatgirl

And I released a new version. https://github.com/h3poteto/fedistar/releases/tag/v1.9.2

h3poteto avatar Mar 29 '24 15:03 h3poteto

Ok, I am able to get the authorization code now, but I still can't log in. After pasting the autorization code and pressing "Authorize", i get the following error from the webkit console:

[Error] error decoding response body: invalid value: integer `-1`, expected u32 at line 1 column 884
	(anonymous function) (index-599ff5d81100b1cf.js:1:96201)

amycatgirl avatar Mar 29 '24 16:03 amycatgirl

Does it happen only wetdry.world? Or happens on other servers?

h3poteto avatar Apr 02 '24 11:04 h3poteto

Not sure if it happens on other servers, I'll try later today

amycatgirl avatar Apr 02 '24 13:04 amycatgirl