I am sending a request to the “default server.”
503 Service Unavailable
{
"message": "Service unavailable"
}
Request Sample: Shell / cURL
I am sending a request to the “default server.”
503 Service Unavailable
{
"message": "Service unavailable"
}
Request Sample: Shell / cURL
What’s going on? What’s going on?
If you are unable to write proper documentation for the API, at least respond on the forum. Or will I have to wait another six months for a response?
could you give any kind of information about the request you are sending ?
errors can occur, what find you missing or confusing about our documentation ?
I am trying to make a request here https://opensubtitles.stoplight.io/docs/opensubtitles-api/
section Download
The token, user agent, and API key are specified. “file_id”: 5748941
If Bearer Auth is selected, I get this
503 Service Unavailable
{
“message”: “Service unavailable”
}
If I use the API key, I get this:
406 Not Acceptable
{
“message”: “Invalid file_id”
}
I also wrote a dart package, and I get the same error 406. The POST request there looks like this
url: https://api.opensubtitles.com/api/v1/download
body: {file_id: 5748941, sub_format: srt}
headers: {Content-Type: application/json, User-Agent: my User-Agent, Accept: application/json, Api-Key: my Api-Key, Authorization: Bearer my token}
The problem is that nowhere is it described what 503 and 406 mean from your server, or there is no adequate response from the server {'error: “bla-bla-bla”}
Why does it work this way? id obtained from api
{id: 5748941, type: subtitle, attributes: {subtitle_id: 5748941, language: en, download_count: 47778, new_download_count: 1102, hearing_impaired: true,.....}
you did a request that gave you a subtitle id, a subtitle can have multiple files, so you can’t query on /download with that ID, you need to lookup for the file_id in the files array
holly molly, my bad
This topic can be closed.