[lychee] 400 Bad Request Header Exception Invalid token

Hello,
i receive an email from notifications@github.com
He gives us a track:

My instincts tells me this is because you have a Bearer Token that is used by Yuno.

https://github.com/LycheeOrg/Lychee/blob/master/app/Services/Auth/SessionOrTokenGuard.php#L307 See here.

I would suggest to edit your .env and set
ENABLE_TOKEN_AUTH to false

see here: https://github.com/LycheeOrg/Lychee/blob/master/config/auth.php

This will disable the token authentication and skip this problem.

I find the .env in var

Preformatted text : nano /var/www/lychee/.env

But it don’t work, nano said .env couldn’t be edit…
So several questions :slight_smile:

  1. Where is the .env file to modify it …?
  2. does Yunohost got a token service to modify ?

Thanks for helping