#268 Problem with session token, can't post new notice at first attempt. (retry works)

Open
3 jaren geleden werd geopend door Gijs · 2 opmerkingen
Gijs reageerde 3 jaren geleden

Often I have trouble posting a new notice at first attempt. Redoing it works.

Here is what happens:

I attempt to post a new notice. Yesterday when I did this, the site happened to show me the "profile" section. I am logged in. There is a "Share your status" form available. I create a message, I hit "send" and get this error message:

"Sorry, we had trouble sending your notice (400 bad request). Please report ... (see image).

I then copy/paste the note in the same form on the "home" section, and then 'send' works fine.

I /think/ this is the corresponding part of the debug log:

POST /notice/new] Session cookie "(code#1)" is set but without a session

POST /notice/new] logging in gijs using rememberme code (code#2)

POST /notice/new] adding rememberme cookie "1:(code#3)" for gijs

POST /notice/new] action.php - User error '400' on 'newnotice': There was a problem with your session token.

POST /notice/new] Handled clientError (400) but cannot output into desired format (NULL): 'There was a problem with your session token.'

AFAICT: there are three strings (code#1-3) that are all different. but look like this "sn1ctjcb2vonu39amaeynaxs73"

Often I have trouble posting a new notice at first attempt. Redoing it works. Here is what happens: I attempt to post a new notice. Yesterday when I did this, the site happened to show me the "profile" section. I am logged in. There is a "Share your status" form available. I create a message, I hit "send" and get this error message: "Sorry, we had trouble sending your notice (400 bad request). Please report ... (see image). I then copy/paste the note in the same form on the "home" section, and then 'send' works fine. I /think/ this is the corresponding part of the debug log: POST /notice/new] Session cookie "(code#1)" is set but without a session POST /notice/new] logging in gijs using rememberme code (code#2) POST /notice/new] adding rememberme cookie "1:(code#3)" for gijs POST /notice/new] action.php - User error '400' on 'newnotice': There was a problem with your session token. POST /notice/new] Handled clientError (400) but cannot output into desired format (NULL): 'There was a problem with your session token.' AFAICT: there are three strings (code#1-3) that are all different. but look like this "sn1ctjcb2vonu39amaeynaxs73"
Gijs reageerde 3 jaren geleden
Poster

Happened again this morning, now when in 'home'. So then I copy the message to 'profile' and it works.

Happened again this morning, now when in 'home'. So then I copy the message to 'profile' and it works.
Diogo Cordeiro reageerde 2 jaren geleden
Eigenaar

Okay, so this seems to be a wild bug related to sessions. Can you enable $config['sessions']['debug'] = true and repeat the experiment?

Also, which $config['sessions']['handle'] have you set?

Okay, so this seems to be a wild bug related to sessions. Can you enable [`$config['sessions']['debug'] = true`](https://notabug.org/diogo/gnu-social/src/master/DOCUMENTATION/SYSTEM_ADMINISTRATORS/CONFIGURE.md#sessions) and repeat the experiment? Also, which [`$config['sessions']['handle']`](https://notabug.org/diogo/gnu-social/src/master/DOCUMENTATION/SYSTEM_ADMINISTRATORS/CONFIGURE.md#sessions) have you set?
Sign in to join this conversation.
Geen mijlpaal
Geen verantwoordelijke
2 deelnemers
Laden...
Annuleren
Opslaan
Er is nog geen inhoud.