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

Cookie error #1068

Open
bfcns opened this issue Dec 2, 2024 · 5 comments
Open

Cookie error #1068

bfcns opened this issue Dec 2, 2024 · 5 comments

Comments

@bfcns
Copy link

bfcns commented Dec 2, 2024

{"application":"Desktop-3.195.13","level":"error","message":"No cookies provided for cookie-based session token.","method":"POST","service":"auth:server","sessionUuid":"a6048f6e-63aa-42bc-a9a4-153654435e5e","snjs":"2.209.5","url":"/v1/items","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) StandardNotes/3.195.13 Chrome/126.0.6478.114 Electron/31.1.0 Safari/537.36","userId":"708c45ca-e15e-4003-90aa-3ca704f8aad8"}
query: SELECT `revoked_session`.`uuid` AS `revoked_session_uuid`, `revoked_session`.`private_identifier` AS `revoked_session_private_identifier`, `revoked_session`.`user_uuid` AS `revoked_session_user_uuid`, `revoked_session`.`received` AS `revoked_session_received`, `revoked_session`.`created_at` AS `revoked_session_created_at`, `revoked_session`.`received_at` AS `revoked_session_received_at`, `revoked_session`.`user_agent` AS `revoked_session_user_agent`, `revoked_session`.`api_version` AS `revoked_session_api_version` FROM `revoked_sessions` `revoked_session` WHERE `revoked_session`.`private_identifier` = ? -- PARAMETERS: ["52567c859869cd04807485472c943596"]

having the same error.

Using a proxmox alpine lxc as self-hosted.

Using windows desktop app to connect. Version 3.195.13

Originally posted by @bfcns in #1064 (comment)

@bfcns
Copy link
Author

bfcns commented Dec 14, 2024

Installed it via VM same error

@pavel-d
Copy link

pavel-d commented Jan 17, 2025

Getting the same error on a Desktop app Version 3.195.15 (3.195.15) after installing via Docker Compose. Basically, the Desktop app is unusable because of this, as it asks you to log in over and over.

It works fine using the latest iOS client though.

@dasTor
Copy link

dasTor commented Feb 6, 2025

Same Error, Linux App 3.195.13-1 selfhosted, newest Version.
It is really sad, no one cares since december. Did anyone resolve this?

@piit79
Copy link

piit79 commented Feb 7, 2025

I was just dealing with the same issue. There is unfortunately an important configuration option missing in the documentation. You need to set

COOKIE_DOMAIN=<your-API-hostname>

in the .env file. I finally figured this out when I switched to the Console tab of the browser developer tools, where I found the following error messages:

Cookie <cookie_name> rejected for invalid domain

Then, in the /login request in the Network tab I found that the cookies were being set for the default domain, "standardnotes.com". When I searched for this error message, I found this Reddit post with a solution.

This is quite strange as it should be fairly easy to auto-detect the correct domain within the API request... I'll see if I can at least get the documentation updated.

@dasTor
Copy link

dasTor commented Feb 7, 2025

Thx @piit79.
I made another update with docker compose down / pull / up -d, edited .env and docker-compose.yml (as the reddit guy did)
and now it's running again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants