mProjectsCode / obsidian-media-db-plugin

A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.
GNU General Public License v3.0
255 stars 31 forks source link

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

Closed technoplayer closed 7 months ago

technoplayer commented 1 year ago

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

Plugin version 0.5.2

Additional context Add any other context about the problem here.

Screenshot_20230704_212702
fischgeek commented 1 year ago

Same here, but for anything I search.

pligrim commented 1 year ago

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?

mProjectsCode commented 1 year ago

Can't reproduce, so i will close this issue

careilly commented 1 year ago

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.

mProjectsCode commented 1 year ago

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

careilly commented 1 year ago

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 @ plugin:obsidian-media-db-plugin:57
  Promise.then (async)    
  step @ plugin:obsidian-media-db-plugin:62
  fulfilled @ plugin:obsidian-media-db-plugin:50
  Promise.then (async)    
  step @ plugin:obsidian-media-db-plugin:62
  eval @ plugin:obsidian-media-db-plugin:63
  __async @ plugin:obsidian-media-db-plugin:47
  openSearchModal @ plugin:obsidian-media-db-plugin:5263
  eval @ plugin:obsidian-media-db-plugin:5575
  eval @ plugin:obsidian-media-db-plugin:63
  __async @ plugin:obsidian-media-db-plugin:47
  createEntryWithSearchModal @ plugin:obsidian-media-db-plugin:5573
  callback @ plugin:obsidian-media-db-plugin:5497
  i_ @ app.js:1
  t.onChooseItem @ app.js:1
  t.onChooseSuggestion @ app.js:1
  t.selectSuggestion @ app.js:1
  e.useSelectedItem @ app.js:1
  e.onSuggestionClick @ app.js:1
  s @ enhance.js:1
careilly commented 1 year ago

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.

mProjectsCode commented 1 year ago

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

mProjectsCode commented 7 months ago

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.