Skip to content

Instantly share code, notes, and snippets.

@tecnobrat
Created July 23, 2023 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tecnobrat/7079c3a42742ec5a387c8ba4ef6c4193 to your computer and use it in GitHub Desktop.
Save tecnobrat/7079c3a42742ec5a387c8ba4ef6c4193 to your computer and use it in GitHub Desktop.
Bazarr OS Error
23/07/2023 13:53:21|DEBUG |urllib3.connectionpool |https://api.opensubtitles.com:443 "POST /api/v1/download HTTP/1.1" 401 78|
23/07/2023 13:53:21|DEBUG |root |opensubtitlescom returned a non standard response. Logging request/response for debugging purpose.|
23/07/2023 13:53:21|DEBUG |root |Request URL: https://api.opensubtitles.com/api/v1/download|
23/07/2023 13:53:21|DEBUG |root |Request Headers: {'User-Agent': 'Bazarr/1.2.4', 'Api-Key': 's38zmzVlW7IlYruWi7mHwDYl2SfMQoC1', 'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Bearer REDACTED', 'Content-Length': '41'}|
23/07/2023 13:53:21|DEBUG |root |Request Body: b'{"file_id": 7203216, "sub_format": "srt"}'|
23/07/2023 13:53:21|DEBUG |root |Response Status Code: 401|
23/07/2023 13:53:21|DEBUG |root |Response Headers: {'Date': 'Sun, 23 Jul 2023 20:53:21 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '78', 'Connection': 'keep-alive', 'RateLimit-Reset': '1', 'X-RateLimit-Remaining-Second': '4', 'X-RateLimit-Limit-Second': '5', 'RateLimit-Limit': '5', 'RateLimit-Remaining': '4', 'X-Frame-Options': 'SAMEORIGIN', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'X-Download-Options': 'noopen', 'X-Permitted-Cross-Domain-Policies': 'none', 'Referrer-Policy': 'strict-origin-when-cross-origin', 'Last-Modified': 'Sun, 23 Jul 2023 20:53:21 GMT', 'Expires': '0', 'Pragma': 'no-cache', 'Cache-Control': 'max-age=0, private, must-revalidate, s-maxage=600', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, HEAD, POST, OPTIONS', 'Access-Control-Allow-Headers': 'Origin, Authorization, Accept, Api-Key, Content-Type, X-User-Agent', 'Content-Security-Policy': "default-src 'self'; font-src 'self' fonts.googleapis.com code.cdn.mozilla.net https: data:; img-src 'self' image.tmdb.org m.media-amazon.com ia.media-imdb.com https: data:; object-src 'self'; form-action 'self' forum.opensubtitles.com localhost:4200 www.opensubtitles.com; frame-src 'self' opensubtitles.test.onfastspring.com opensubtitles.onfastspring.com *.cloudfront.net api.blink.net *.tawk.to tawk.to test.blink.net blink.net www.recaptcha.net www.google.com www.youtube.com; connect-src 'self' region1.google-analytics.com bam.eu01.nr-data.net opensubtitles.test.onfastspring.com opensubtitles.onfastspring.com *.cloudfront.net rb-dev:8082 *.tawk.to wss://*.tawk.to cdn.datatables.net www.google-analytics.com test.blink.net api.blink.net blink.net www.gstatic.com *.blink.net api.test.blink.net; base-uri 'self' test.blink.net api.blink.net blink.net *.blink.net; frame-ancestors 'self'; script-src 'self' *.cloudfront.net bam.eu01.nr-data.net www.google.com cdn.datatables.net www.recaptcha.net www.google-analytics.com https: 'unsafe-inline' 'unsafe-eval'; style-src 'self' cdnjs.cloudflare.com https: 'unsafe-inline'", 'X-Request-Id': '3682dabc-70d2-42c6-ba44-50077c4fe9ba', 'X-Runtime': '0.031149', 'X-StackifyID': 'V1|cdaddebe-03cf-427e-8de3-5f23eb370e6b|C98087|CD1', 'X-Kong-Upstream-Latency': '36', 'X-Kong-Proxy-Latency': '1', 'X-Cache-Backend': 'apigw1_8000 rb7', 'Age': '0', 'X-Var-Cache': 'MISS', 'X-Via': 'fw1', 'CF-Cache-Status': 'DYNAMIC', 'Report-To': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=NENvHTdAPEAc1EkQ6OtOyXd07a12Ex5wNIup9PNEHCqtMD%2FH47erCR%2FV6RdqdGS1FDsZqryBw1dRCXh5xpPqefPwrySqpaYgAsQcUfkC6L2JTH3XbVqXX32qcJXtEIffJ1DNhm2mTKw%3D"}],"group":"cf-nel","max_age":604800}', 'NEL': '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains; preload', 'Server': 'cloudflare', 'CF-RAY': '7eb6cff8195c2adb-LAX', 'alt-svc': 'h3=":443"; ma=86400'}|
23/07/2023 13:53:21|DEBUG |root |Response Body: {"message":"invalid token","uk":"app_166_REDACTED","uid":2,"ts":1690145601}|
23/07/2023 13:53:21|DEBUG |root |Authentication failed: clearing cache and attempting to login.|
23/07/2023 13:53:23|DEBUG |urllib3.connectionpool |https://api.opensubtitles.com:443 "POST /api/v1/login HTTP/1.1" 200 316|
23/07/2023 13:53:23|DEBUG |urllib3.connectionpool |https://api.opensubtitles.com:443 "POST /api/v1/download HTTP/1.1" 401 78|
23/07/2023 13:53:23|DEBUG |root |opensubtitlescom returned a non standard response. Logging request/response for debugging purpose.|
23/07/2023 13:53:23|DEBUG |root |Request URL: https://api.opensubtitles.com/api/v1/download|
23/07/2023 13:53:23|DEBUG |root |Request Headers: {'User-Agent': 'Bazarr/1.2.4', 'Api-Key': 's38zmzVlW7IlYruWi7mHwDYl2SfMQoC1', 'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'Bearer REDACTED', 'Content-Length': '41'}|
23/07/2023 13:53:23|DEBUG |root |Request Body: b'{"file_id": 7203216, "sub_format": "srt"}'|
23/07/2023 13:53:23|DEBUG |root |Response Status Code: 401|
23/07/2023 13:53:23|DEBUG |root |Response Headers: {'Date': 'Sun, 23 Jul 2023 20:53:23 GMT', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '78', 'Connection': 'keep-alive', 'RateLimit-Reset': '1', 'X-RateLimit-Remaining-Second': '4', 'X-RateLimit-Limit-Second': '5', 'RateLimit-Limit': '5', 'RateLimit-Remaining': '4', 'X-Frame-Options': 'SAMEORIGIN', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'X-Download-Options': 'noopen', 'X-Permitted-Cross-Domain-Policies': 'none', 'Referrer-Policy': 'strict-origin-when-cross-origin', 'Last-Modified': 'Sun, 23 Jul 2023 20:53:23 GMT', 'Expires': '0', 'Pragma': 'no-cache', 'Cache-Control': 'max-age=0, private, must-revalidate, s-maxage=600', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, HEAD, POST, OPTIONS', 'Access-Control-Allow-Headers': 'Origin, Authorization, Accept, Api-Key, Content-Type, X-User-Agent', 'Content-Security-Policy': "default-src 'self'; font-src 'self' fonts.googleapis.com code.cdn.mozilla.net https: data:; img-src 'self' image.tmdb.org m.media-amazon.com ia.media-imdb.com https: data:; object-src 'self'; form-action 'self' forum.opensubtitles.com localhost:4200 www.opensubtitles.com; frame-src 'self' opensubtitles.test.onfastspring.com opensubtitles.onfastspring.com *.cloudfront.net api.blink.net *.tawk.to tawk.to test.blink.net blink.net www.recaptcha.net www.google.com www.youtube.com; connect-src 'self' region1.google-analytics.com bam.eu01.nr-data.net opensubtitles.test.onfastspring.com opensubtitles.onfastspring.com *.cloudfront.net rb-dev:8082 *.tawk.to wss://*.tawk.to cdn.datatables.net www.google-analytics.com test.blink.net api.blink.net blink.net www.gstatic.com *.blink.net api.test.blink.net; base-uri 'self' test.blink.net api.blink.net blink.net *.blink.net; frame-ancestors 'self'; script-src 'self' *.cloudfront.net bam.eu01.nr-data.net www.google.com cdn.datatables.net www.recaptcha.net www.google-analytics.com https: 'unsafe-inline' 'unsafe-eval'; style-src 'self' cdnjs.cloudflare.com https: 'unsafe-inline'", 'X-Request-Id': 'e6b64f51-139e-4d23-8ca3-0102e7cf4b27', 'X-Runtime': '0.008981', 'X-StackifyID': 'V1|eff1e7b7-4cdd-4a51-95f9-ee8695d0bf2a|C98184|CD1', 'X-Kong-Upstream-Latency': '11', 'X-Kong-Proxy-Latency': '1', 'X-Cache-Backend': 'apigw1_8000 rb1', 'Age': '0', 'X-Var-Cache': 'MISS', 'X-Via': 'fw1', 'CF-Cache-Status': 'DYNAMIC', 'Report-To': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=CPg5qWi0xk5UQSFI2nRTNqykcIVaGzCgq%2BuSibvZZqZdfO3HLyaAIXEAzndJpPA6p4%2BnjWUlTk7Zt7VT9DnjXVtyxYOYrB1xWK0dZG66xUPapfPTqrPL9xEJAIfTyQTiOYbICHePtDI%3D"}],"group":"cf-nel","max_age":604800}', 'NEL': '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}', 'Strict-Transport-Security': 'max-age=15552000; includeSubDomains; preload', 'Server': 'cloudflare', 'CF-RAY': '7eb6d003cb512adb-LAX', 'alt-svc': 'h3=":443"; ma=86400'}|
23/07/2023 13:53:23|DEBUG |root |Response Body: {"message":"invalid token","uk":"app_166_REDACTED","uid":2,"ts":1690145603}|
23/07/2023 13:53:23|DEBUG |root |Authentication failed: clearing cache and attempting to login.|
23/07/2023 13:53:23|ERROR |subliminal_patch.core |Unexpected error in provider 'opensubtitlescom', Traceback: Traceback (most recent call last): File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/core.py", line 455, in download_subtitle self[subtitle.provider_name].download_subtitle(subtitle) File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/opensubtitlescom.py", line 406, in download_subtitle res = self.retry( File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/mixins.py", line 46, in retry return f() File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/opensubtitlescom.py", line 407, in <lambda> lambda: self.checked( File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/opensubtitlescom.py", line 484, in checked self.checked(fn, raise_api_limit=raise_api_limit, validate_json=validate_json, File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/opensubtitlescom.py", line 480, in checked raise AuthenticationError('Login failed')subliminal.exceptions.AuthenticationError: Login failed|Traceback (most recent call last): File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/core.py", line 455, in download_subtitle self[subtitle.provider_name].download_subtitle(subtitle) File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/opensubtitlescom.py", line 406, in download_subtitle res = self.retry( File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/mixins.py", line 46, in retry return f() File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/opensubtitlescom.py", line 407, in <lambda> lambda: self.checked( File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/opensubtitlescom.py", line 484, in checked self.checked(fn, raise_api_limit=raise_api_limit, validate_json=validate_json, File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/providers/opensubtitlescom.py", line 480, in checked raise AuthenticationError('Login failed')subliminal.exceptions.AuthenticationError: Login failed|
23/07/2023 13:53:23|INFO |root |Throttling opensubtitlescom for 12 hours, until 23/07/24 01:53, because of: AuthenticationError. Exception info: 'Login failed'|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment