Compare commits
1 Commits
test-node-
...
test-fix-i
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
166796804e |
@@ -133,6 +133,11 @@ class JellyfinAPI extends ExternalAPI {
|
|||||||
}
|
}
|
||||||
: {};
|
: {};
|
||||||
|
|
||||||
|
logger.debug(`Logging in to Jellyfin server: ${this.jellyfinHost}`, {
|
||||||
|
label: 'Jellyfin API',
|
||||||
|
clientIp: ClientIP,
|
||||||
|
});
|
||||||
|
|
||||||
const authResponse = await this.post<JellyfinLoginResponse>(
|
const authResponse = await this.post<JellyfinLoginResponse>(
|
||||||
'/Users/AuthenticateByName',
|
'/Users/AuthenticateByName',
|
||||||
{
|
{
|
||||||
@@ -146,6 +151,12 @@ class JellyfinAPI extends ExternalAPI {
|
|||||||
|
|
||||||
return authResponse;
|
return authResponse;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
logger.error('Failed to login to Jellyfin server', {
|
||||||
|
label: 'Jellyfin API',
|
||||||
|
clientIp: ClientIP,
|
||||||
|
error: e,
|
||||||
|
});
|
||||||
|
|
||||||
const status = e.response?.status;
|
const status = e.response?.status;
|
||||||
|
|
||||||
const networkErrorCodes = new Set([
|
const networkErrorCodes = new Set([
|
||||||
|
|||||||
Reference in New Issue
Block a user