question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OMDB HTTPError: 401 Client Error

See original GitHub issue

By-proxy for @ukdtom. Happens for him every time. Will check locally.

2017-05-20 20:01:37,359 (7f7706c91700) :  ERROR (logger:38) - subliminal_patch.core: Failed to refine video: Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/subliminal_patch/core.py", line 577, in refine
    refiner_manager[refiner].plugin(video, **kwargs)
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/subliminal/refiners/omdb.py", line 155, in refine
    results = search(video.title, 'movie', video.year)
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/dogpile/cache/region.py", line 1220, in decorate
    should_cache_fn)
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/dogpile/cache/region.py", line 825, in get_or_create
    async_creator) as value:
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/dogpile/lock.py", line 154, in __enter__
    return self._enter()
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/dogpile/lock.py", line 94, in _enter
    generated = self._enter_create(createdtime)
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/dogpile/lock.py", line 145, in _enter_create
    created = self.creator()
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/dogpile/cache/region.py", line 792, in gen_value
    created_value = creator()
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/dogpile/cache/region.py", line 1216, in creator
    return fn(*arg, **kw)
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/subliminal/refiners/omdb.py", line 76, in search
    results = omdb_client.search(title, type, year)
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/subliminal/refiners/omdb.py", line 59, in search
    r.raise_for_status()
  File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Sub-Zero.bundle/Contents/Libraries/Shared/requests/models.py", line 909, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 401 Client Error: Unauthorized for url: http://www.omdbapi.com/?r=json&v=1&y=2016&s=Allied&type=movie&page=1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
basilkycommented, Feb 13, 2021

@euphoria360 You can provide it using --omdb “APIKEY”

0reactions
euphoria360commented, Jan 19, 2021

Fixed by 3aea2d7

Now you can provide the apikey when using subliminal. If not provided, refiner will be skipped

how can I provide my omdb API key? I couldn’t find where should I add it using subliminal CLI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unauthorized (HTTP 401) R omdbapi - Stack Overflow
I'm getting an error when I try to access the OMDbAPI (http://www.omdbapi.com/). In addition, when I go to that site and try to...
Read more >
Error with OMDBAPI help : r/couchpotato - Reddit
I've been trying to see if this is a new defect, cannot find much on El-Goog. Anyone encounter this before?
Read more >
Error 401 Client Error: Unauthorized for url - Hub
Hi @talids, you're getting a 401 error because you're not authenticated when making the request, and either: the model doesn't exist; the model ......
Read more >
Salesforce Input Tool - 401 Client Error - Alteryx Community
Solved: Hello, I have inherited a couple of Salesforce workflows from a former coworker and have run into an issue.
Read more >
401 Error: 5 Ways to Troubleshoot and Fix It - Hostinger
The 401 Unauthorized error indicates that the server's request was not verified because it lacks valid authentication credentials for the target ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found