Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
uri
Posts: 5
Joined: Tue Jan 02, 2024 3:23 am

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

Tue Jan 02, 2024 1:17 pm

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)); }), );

uri
Posts: 5
Joined: Tue Jan 02, 2024 3:23 am

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

Tue Jan 02, 2024 1:30 pm

actually I see that api.opensubtitles.com is down entirely
Last edited by uri on Tue Jan 02, 2024 1:33 pm, edited 1 time in total.

uri
Posts: 5
Joined: Tue Jan 02, 2024 3:23 am

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

Tue Jan 02, 2024 1:44 pm

now it's back up but it was down for a couple of hours... what happened?

User avatar
oss
Site Admin
Posts: 5890
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

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

Tue Jan 02, 2024 2:50 pm

Hi

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

Return to “Developing”

Who is online

Users browsing this forum: Ahrefs [Bot] and 20 guests