Discussions
Sometimes 502 Responses when requesting V2 API
2 days ago
Hello 🙂
The last 502 response we got from the V1 API was on 02.12.2025. But since migrating to the V2 API a month a ago, we are receiving 502 Bad Gateway responses. This has happened a few times now and is causing issues for us.
Here the logs we could gather for further detail:
[2026-10-08 04:00:20] [console] CRITICAL: Error thrown while running command "kimai:bundle:personio-sync:sync-attendances". Message: "Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response" {"exception":"[object] (GuzzleHttp\\Exception\\ServerException(code: 502): Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<invalid>` resulted in a `502 Bad Gateway` response at /var/www/html/kimai2/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:111)","command":"kimai:bundle:personio-sync:sync-attendances","message":"Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response"} [][2026-10-04 04:00:05] [console] CRITICAL: Error thrown while running command "kimai:bundle:personio-sync:sync-attendances". Message: "Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response" {"exception":"[object] (GuzzleHttp\\Exception\\ServerException(code: 502): Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response at /var/www/html/kimai2/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:111)","command":"kimai:bundle:personio-sync:sync-attendances","message":"Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response"} [][2026-09-26 04:00:05] [console] CRITICAL: Error thrown while running command "kimai:bundle:personio-sync:sync-attendances". Message: "Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacte>` resulted in a `502 Bad Gateway` response" {"exception":"[object] (GuzzleHttp\\Exception\\ServerException(code: 502): Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response at /var/www/html/kimai2/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:111)","command":"kimai:bundle:personio-sync:sync-attendances","message":"Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response"} [][2026-09-22 04:00:40] [console] CRITICAL: Error thrown while running command "kimai:bundle:personio-sync:sync-attendances". Message: "Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response" {"exception":"[object] (GuzzleHttp\\Exception\\ServerException(code: 502): Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response at /var/www/html/kimai2/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:111)","command":"kimai:bundle:personio-sync:sync-attendances","message":"Server error: `GET https://api.personio.de/v2/persons?limit=1&email=<redacted>` resulted in a `502 Bad Gateway` response"} []Kind Regards
Linus Nagel

