Memos image error preview and zip files not downloads

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.17
What app is this about: memos

Describe your issue

When I attach an image in a memo, it doesn’t appear in the note, and I can’t download or view it https://i.vgy.me/YG5Igv.jpg. When I attach a zip file, an error appears when I click on it - {“code”:16,“message”:“failed to get access token: authorization header format must be Bearer {token}”,“details”:}

Share relevant logs or error messages

no error

I’ve fixed an issue, might be useful to someone. The problem arises because SSOwat (YunoHost’s Single Sign-On system) automatically adds authorization headers to resource requests (like images), which conflicts with Memos’s internal authentication.

The core solution: Disable auth_header for Memos
You need to disable the transmission of authorization headers for the Memos application. Execute the following command via SSH:

app=memos
sudo yunohost tools shell -c "from yunohost.permission import permission_url; permission_url('$app.main', auth_header=False)"

Thanks! should be fixed on testing.

1 Like