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.
ilovelasagna
Posts: 1
Joined: Sat Jan 20, 2024 6:04 pm

Error 503 Service Unavailable - Download subtitle

Sat Jan 20, 2024 6:08 pm

Hey, im trying to download any subtitle title but i always receive error 503. I dont know if im doing anything wrong or the server is really down.
Below there is the curl im using. apikey and user agent are hidden.

Code: Select all

curl --request POST \ --url https://api.opensubtitles.com/api/v1/download \ --header 'Api-Key: ${api_key}' \ --header 'Authorization: Bearer ${api_key}' \ --header 'User-Agent: ${user_agent}' \ --data '{ "file_id": "7568241" }'

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

Re: Error 503 Service Unavailable - Download subtitle

Sun Jan 21, 2024 2:53 pm

interesting, works for me:
curl --request POST \
--url 'https://api.opensubtitles.com/api/v1/do ... id=7568241' \
--header 'Api-Key: <API>' \
--header 'Authorization: Bearer <TOKEN> \
--header 'Content-Type: application/json' \
--header 'User-Agent: <UA> v1.1' \
--data '{
"file_id":5143312
}'
should work for you also.

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 16 guests