Page 1 of 1

503 on https://api.opensubtitles.com/api/v1/login

Posted: Tue Jan 02, 2024 1:17 pm
by uri
this morning I started getting 503 while trying to login and get a token

here is my code

Code: Select all

const getToken = (username: string, password: string) => fetch("https://api.opensubtitles.com/api/v1/login", { method: "POST", headers: new Headers({ Accept: "application/json", "Api-Key": apiKey, "Content-Type": "application/json", "User-Agent": userAgent, }), body: JSON.stringify({ username, password }), }).then((response) => response.ok ? response.json().then(({ token }) => token as string) : response.text().then((data) => { throw new Error(JSON.stringify(data)); }), );

Re: 503 on https://api.opensubtitles.com/api/v1/login

Posted: Tue Jan 02, 2024 1:30 pm
by uri
actually I see that api.opensubtitles.com is down entirely

Re: 503 on https://api.opensubtitles.com/api/v1/login

Posted: Tue Jan 02, 2024 1:44 pm
by uri
now it's back up but it was down for a couple of hours... what happened?

Re: 503 on https://api.opensubtitles.com/api/v1/login

Posted: Tue Jan 02, 2024 2:50 pm
by oss
Hi

for some reason servers was down and have to restart it, checking the issue, what caused it. Probably not enough RAM :(