Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any url returns an empty page if no cookie is previously existant #27697

Closed
NicoBerlo opened this issue Nov 4, 2023 · 4 comments · Fixed by #27698
Closed

any url returns an empty page if no cookie is previously existant #27697

NicoBerlo opened this issue Nov 4, 2023 · 4 comments · Fixed by #27698
Labels
area/web interface Related to the Mastodon web interface bug Something isn't working status/confirmed This bug has been confirmed

Comments

@NicoBerlo
Copy link

NicoBerlo commented Nov 4, 2023

Steps to reproduce the problem

try any page on my instance, like :
https://lepoulsdumonde.com/@nico or https://lepoulsdumonde.com/
Only a grey window is displayed.
the console logs :
Uncaught Error: No current user (me) defined when calling `accountsReducer` at accounts (accounts.ts:51:11)
But when you already have an existing connection to the server (I guess when you have an existing cookie), everything works fine.
For example, on my main browser, firefox 119 on win 11, I can log in and out, get any url because I've been using it with an account for a long time.
But if I go to chrome which I never used to access my instance, or on my phone, or if a friend tries to connect to my instance, I get this error, and only a grey empty window is displayed.
I don't get any error logs in journalctl.
I tried pulling main again, and deleting the packs and cache and recompiling, restarting all services with no success.
I'm using the latest nightly main branch from source pull.
I don't know when the problem appeared exactly.

Expected behaviour

display the web page

Actual behaviour

empty window

Detailed description

No response

Mastodon instance

lepoulsdumonde.com

Mastodon version

v4.3.0alpha nightly from source

Browser name and version

firefox 119, chrome 119

Operating system

win 11, ios, win10

Technical details

No response

@NicoBerlo NicoBerlo added area/web interface Related to the Mastodon web interface bug Something isn't working status/to triage This issue needs to be triaged labels Nov 4, 2023
@vmstan
Copy link
Contributor

vmstan commented Nov 4, 2023

@renchap likely a result of #26559

@vmstan vmstan added status/confirmed This bug has been confirmed and removed status/to triage This issue needs to be triaged labels Nov 4, 2023
@vmstan
Copy link
Contributor

vmstan commented Nov 4, 2023

I'm able to reproduce it. Pages load if you're already logged in but nothing if you're a unauthenticated user.

@crisukbot
Copy link

I have the same problem.

renchap added a commit to renchap/mastodon that referenced this issue Nov 4, 2023
I made a mistake in mastodon#26559 and inadvertently added a check when the reducer runs, which happens on page load.

This needs to only be checked when those specific actions are dispatched, which only happen when you are logged in.

Added a system check to ensure the UI loads when not logged in.

Fixes mastodon#27697
@renchap
Copy link
Sponsor Member

renchap commented Nov 4, 2023

Woops sorry, fix should be in #27698

renchap added a commit to renchap/mastodon that referenced this issue Nov 4, 2023
I made a mistake in mastodon#26559 and inadvertently added a check when the reducer runs, which happens on page load.

This needs to only be checked when those specific actions are dispatched, which only happen when you are logged in.

Added a system check to ensure the UI loads when not logged in.

Fixes mastodon#27697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/web interface Related to the Mastodon web interface bug Something isn't working status/confirmed This bug has been confirmed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants