Compare commits

...

1 Commits

Author SHA1 Message Date
fallenbagel
857844d058 refactor(authapi): temporarily log the auth error and the client ip
Attempt to debug any issues caused by #470
2024-06-05 16:32:37 +05:00

View File

@@ -126,6 +126,7 @@ class JellyfinAPI extends ExternalAPI {
Password?: string,
ClientIP?: string
): Promise<JellyfinLoginResponse> {
logger.debug('Client IP: ', ClientIP);
try {
const headers = ClientIP
? {
@@ -146,6 +147,7 @@ class JellyfinAPI extends ExternalAPI {
return authResponse;
} catch (e) {
logger.debug(e);
const status = e.response?.status;
const networkErrorCodes = new Set([