### Steps to reproduce
1. Enable the API
2. Get the Token from the user profile
3. Authorize the user
### Expected behaviour
Generate a token to use the API
### Actual behaviour
Error: Server returned nothing (no headers, no data)
### Server configuration
**Operating system**:
Docker 24.0.7 on Debian 12.2
**Web server:**
Default of image
**Database:**
MariaDB 10.11.2
**PHP version:**
Default of image
**Teampass version:**
I tested with the image version on Docker Hub (3.1.1.7) but I also compiled an image with the updated files from Github (3.1.2)
**Teampass configuration file:**
**Updated from an older Teampass or fresh install:**
PLEASE attach to this issue the file `/includes/config/tp.config.php`.
### Client configuration
**Browser:**
**Operating system:**
### Logs
#### Web server error log
```
Insert your webserver log here
```
#### Log from the web-browser developer console (CTRL + SHIFT + i)
```
Insert the log here and especially the answer of the query that failed.
```
![image](https://github.com/nilsteampassnet/TeamPass/assets/29665844/e79501e2-b0d2-451d-ba68-f08fb51c1474)
![image](https://github.com/nilsteampassnet/TeamPass/assets/29665844/7061fe1c-3a03-4c80-9a77-402b9130ed2b)