Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 403 Error when accessing https://edge.api.brightcove.com/ #1453

Closed
6 tasks
kalun85 opened this issue Jan 18, 2025 · 1 comment
Closed
6 tasks

HTTP 403 Error when accessing https://edge.api.brightcove.com/ #1453

kalun85 opened this issue Jan 18, 2025 · 1 comment

Comments

@kalun85
Copy link

kalun85 commented Jan 18, 2025

⚠️ Please try the last beta version and check existing issues before issuing a bug. ⚠️

Describe the bug

When playing video, getting 403 error.

When looking at the logs, seems to be edge.api.brightcove.com related.

ile "C:\Users\Media Center\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://edge.api.brightcove.com/playback/v1/accounts/5718741494001/videos/ref:e5ffc009-6e38-4521-8fdb-54aaf8ca98be
2025-01-18 10:46:14.790 T:4212 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

To Reproduce

Steps to reproduce the behaviour:

  1. Go to catchup TV and play Japanese Video (It may affect other videos too, but I haven't tried)

Expected behaviour

Video to play

Actual behaviour

Unable to play with error above

Screenshots

No Screenshots, but added logs

Your environment

  • Android

  • iOS

  • Linux

  • OSX

  • Raspberry-Pi

  • [ X] Windows

  • Other

  • Operating system version/name: Windows 11

  • Kodi version: 20.1

  • Catch-up TV & More version: .2.40~beta19

  • Installation method:

Debug log

2025-01-18 10:46:14.787 T:4212 error : [Catch-up-TV-&-More.support] 403 Client Error: Forbidden for url: https://edge.api.brightcove.com/playback/v1/accounts/5718741494001/videos/ref:e5ffc009-6e38-4521-8fdb-54aaf8ca98be
Traceback (most recent call last):
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\script.module.codequick\lib\codequick\support.py", line 306, in run_callback
redirect = parent_ins(route, arg_params, self.callback_params)
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\script.module.codequick\lib\codequick\resolver.py", line 67, in call
results = super(Resolver, self).call(route, args, kwargs)
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\script.module.codequick\lib\codequick\script.py", line 169, in call
return route.function(self, *args, **kwargs)
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\plugin.video.catchuptvandmore\resources\lib\channels\jp\tver.py", line 120, in get_video_url
return resolver_proxy.get_brightcove_video_json(plugin, data_account, data_player, data_video_id, None, download_mode)
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\plugin.video.catchuptvandmore\resources\lib\resolver_proxy.py", line 404, in get_brightcove_video_json
resp = urlquick.get(URL_BRIGHTCOVE_VIDEO_JSON % (data_account, data_video_id), headers=headers)
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\script.module.codequick\lib\urlquick.py", line 492, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\script.module.codequick\lib\urlquick.py", line 486, in request
return s.request(method=method, url=url, **kwargs)
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\script.module.codequick\lib\urlquick.py", line 441, in request
self._raise_for_status(response, raise_for_status)
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\script.module.codequick\lib\urlquick.py", line 414, in _raise_for_status
response.raise_for_status()
File "C:\Users\Media Center\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://edge.api.brightcove.com/playback/v1/accounts/5718741494001/videos/ref:e5ffc009-6e38-4521-8fdb-54aaf8ca98be
2025-01-18 10:46:14.790 T:4212 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

@kalun85
Copy link
Author

kalun85 commented Jan 18, 2025

nvm, got it working, please disregard, closing issue

@kalun85 kalun85 closed this as completed Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant