How to solve error “422:invalid authentication tok

2019-07-28 01:36发布

In redmine I am getting 422:invalid authentication token and the logged in name is displayed with other user name instead of login user. There are no steps to reproduce. All of a sudden it occurs and it will be proper when I refresh the link. Please find the attached image for clear scenario. In the attached screenshot login user name is Pavithra but all of a sudden the logged in name will be displayed with other user name (Highlighted in green colour).

Error

1条回答
叼着烟拽天下
2楼-- · 2019-07-28 02:02

I ran into a similar issue for several users. For most of them it was handled via a simple disconnect / connect operation.

But one of them gave me a hard time. It happened all the time with an easy step to reproduce : adding a new block to "my page" constantly resulted in the 422 invalid token error message. No internet solution would give me a clue :

  • cookie deleting
  • secret key reseting
  • forcing a redirect to the home page

Moreover it happened for any web browser, even a newly installed one. That led me to the user_preferences table in the database. I asked the user if I could reset his preferences and I did it with the following SQL command : delete from user_preferences where user_id=xx; where xx is the user ID.

After a disconnect / connect, a new block can be added to "my page", the 422 error is gone.

查看更多
登录 后发表回答