mProjectsCode/obsidian-media-db-plugin

Searching for movie "Dune" gives me an API key error

Closed this issue · 9 comments

  • [x ] The Plugin is up to date
  • [ x] Obsidian is up to date

Describe the bug
Typing the word Dune or dune for an OMDB search yields an API key error, so far every other movie word or title I have tried has worked without issue.

To Reproduce
Steps to reproduce the behavior:

  1. Initiate Media DB Advanced Search.
  2. Toggle OMDdAPI to on.
  3. In the box titled Search by title, enter the word Dune (or dune).
  4. Message appears, saying "Error: MDB | Authentication for OMDbAPI failed. Check the API key.".

Expected behavior
To be presented with a list of movies with Dune in the title.

Screenshots
If applicable, add screenshots to help explain your problem.

Occurs on

  • Windows
  • macOS
  • [x ] Linux
  • Android
  • iOS

Plugin version
0.5.2

Additional context
Add any other context about the problem here.
Screenshot_20230704_212702

Same here, but for anything I search.

Did you click on the link in the email to activate your key and try the test url query that was in the activation email?

Can't reproduce, so i will close this issue

Getting a similar problem on MacOS, newly installed plugin, all up to date, using latest insider release. Searching for "Babylon 5" fails with an authentication error. Searching for "Babylon" works.

I have activated the key and test url works fine.

i can not reproduce this either. Can you pen the console and copy the exact error message here

See below. "Babylon 5" is the only case I make it break on! Which was the first thing I searched for after I installed the plugin.

plugin:obsidian-media-db-plugin:5280 Error: MDB | Authentication for OMDbAPI failed. Check the API key.
at OMDbAPI.eval (plugin:obsidian-media-db-plugin:3813:15)
at Generator.next ()
at fulfilled (plugin:obsidian-media-db-plugin:50:24)

eval @ plugin:obsidian-media-db-plugin:5280
  rejected @
  Promise.then (async)  
  step @
  fulfilled @
  Promise.then (async)  
  step @
  eval @
  __async @
  openSearchModal @
  eval @
  eval @
  __async @
  createEntryWithSearchModal @
  callback @
  i_ @
  t.onChooseItem @
  t.onChooseSuggestion @
  t.selectSuggestion @
  e.useSelectedItem @
  e.onSuggestionClick @
  s @

Does the code cache anything? Maybe the query is being cached the other side, I called it before the API key was confirmed and it's cached the error? "Babylon 6" works, so it must be something like that.

This could be the case. If so, there is nothing i can do about it.

I will close this, as i was never able to reproduce the issue. In any case, it seems to be more an issue with OMDB and not the plugin.