Will the headers be the same as they were when they are added back? If not, could you put it in the api changelog?thats right, for some reason we had to disable it, because it was not counted properly and clients get 429 errors in cases, where they shouldn't
Code: Select all
var testData = []byte(`{"file_id": 1234}`)
downloadReq, err := http.NewRequest("POST", "https://api.opensubtitles.com/api/v1/download", bytes.NewBuffer(testData))
downloadReq.Header.Add("Api-Key", "WITHHELD_FOR_POST")
downloadReq.Header.Add("Content-Type", "application/json")
downloadReq.Header.Add("User-Agent", "leshmoa/1.0")
downloadResp, err := http.DefaultClient.Do(downloadReq)
Code: Select all
map[X-Var-Cache:[MISS] X-Via:[fw1] Strict-Transport-Security:[max-age=15552000; includeSubDomains; preload] Date:[Mon, 04 Apr 2022 11:29:11 GMT] X-Runtime:[0.169147] Access-Control-Allow-Origin:[*] Cf-Cache-Status:[DYNAMIC] Server:[cloudflare] Content-Type:[text/html; charset=UTF-8] X-Kong-Proxy-Latency:[1] Age:[0] Cf-Ray:[6f69b46f6b487691-LHR] X-Content-Type-Options:[nosniff] Alt-Svc:[h3=":443"; ma=86400, h3-29=":443"; ma=86400] X-Request-Id:[c10c4b51-c1a9-4e4f-81bb-43a5e2abedf4] X-Kong-Upstream-Latency:[177] X-Cache-Backend:[apigw1_8000 rb1-new] Expect-Ct:[max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"] Report-To:[{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=R67couPj45b811R1nmz6IUngtmQ6Whxe1TsD9Q8r1XqNY%2BUBLYaBYsnbh%2BuAOJqWbwknGfRIKCWd%2BqeTNYWuxsa7HLZVEjnpo%2FJcFr84NxCekxxrHefAmKm4DP3MkSJSJSTq7UhVI6DWZc3wf9YbwS80wa4%3D"}],"group":"cf-nel","max_age":604800}] Nel:[{"success_fraction":0,"report_to":"cf-nel","max_age":604800}]]
Try setting the accept header to */* or application/jsonI can send a download post no problem using curl or python but when I attempt via golang I'm getting a strange 406 response with no message and this as the body. Seeing the references to cloudflare make me worry I'm being caught in a fliter. Here is my simplified code that illustrates the issue. The inline code isn't formatting well so here it is also as a pastebin: https://pastebin.com/XruvAPgs
Code: Select all
var testData = []byte(`{"file_id": 1234}`) downloadReq, err := http.NewRequest("POST", "https://api.opensubtitles.com/api/v1/download", bytes.NewBuffer(testData)) downloadReq.Header.Add("Api-Key", "WITHHELD_FOR_POST") downloadReq.Header.Add("Content-Type", "application/json") downloadReq.Header.Add("User-Agent", "leshmoa/1.0") downloadResp, err := http.DefaultClient.Do(downloadReq)
Code: Select all
map[X-Var-Cache:[MISS] X-Via:[fw1] Strict-Transport-Security:[max-age=15552000; includeSubDomains; preload] Date:[Mon, 04 Apr 2022 11:29:11 GMT] X-Runtime:[0.169147] Access-Control-Allow-Origin:[*] Cf-Cache-Status:[DYNAMIC] Server:[cloudflare] Content-Type:[text/html; charset=UTF-8] X-Kong-Proxy-Latency:[1] Age:[0] Cf-Ray:[6f69b46f6b487691-LHR] X-Content-Type-Options:[nosniff] Alt-Svc:[h3=":443"; ma=86400, h3-29=":443"; ma=86400] X-Request-Id:[c10c4b51-c1a9-4e4f-81bb-43a5e2abedf4] X-Kong-Upstream-Latency:[177] X-Cache-Backend:[apigw1_8000 rb1-new] Expect-Ct:[max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"] Report-To:[{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=R67couPj45b811R1nmz6IUngtmQ6Whxe1TsD9Q8r1XqNY%2BUBLYaBYsnbh%2BuAOJqWbwknGfRIKCWd%2BqeTNYWuxsa7HLZVEjnpo%2FJcFr84NxCekxxrHefAmKm4DP3MkSJSJSTq7UhVI6DWZc3wf9YbwS80wa4%3D"}],"group":"cf-nel","max_age":604800}] Nel:[{"success_fraction":0,"report_to":"cf-nel","max_age":604800}]]
some weirdly formatted SSA file that the system doesn't recognise... can happen sometimes unfortunately, subtitle is now disabled and won't be fixed.
Also, could you check what's going on with subtitle with file_id 6972559? The download url returned by /api/v1/download returns an empty response
nothing changed with the login/passwords, all our services are up.Hello again!
Some users of the jellyfin opensubtitles plugin are reporting being unable to log in, this is the latest issue (link) (there's a username in the posted screenshot which might be useful for debugging).
The issue does not happen with my account so I can't really debug it so I was hoping you could maybe give it a look
Users browsing this forum: No registered users and 4 guests