Create a Movie

Things I have tried

I followed the website Create a movie database - Minimal Documentation I cannot get the tutorial to work correctly. It keeps popping up “No Results”. I do have a OMDB API and have added everything as stated. Cannot think of anything else that could be causing the problem. When I put in a Title for the movie it never connects for me to pick the movie. Hope that makes sense.

What I’m trying to do

Do you get any errors in your Developer Console? (Click anywhere in Obsidian then type Ctrl+Shift+i or cmd+shift+i depending on your OS to make the developer area appear, then click the “Console” tab.)

Here is what is in the console for errors. Question: The {{VALUE:fileName}}. Should I be changing “fileName” with a something else. I put in the movie.js as fileName and still nothing. How is the system knowing to use that? Thank you. Hope I copied the errors in the proper format.

Uncaught (in promise) Error: No results found.
    at getByQuery (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:84:11)
    at async start (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:42:21)
    at async MacroChoiceEngine.onExportIsFunction (eval at <anonymous> (app.js:1:1494667), <anonymous>:11758:23)
    at async MacroChoiceEngine.runScriptWithSettings (eval at <anonymous> (app.js:1:1494667), <anonymous>:11728:13)
    at async MacroChoiceEngine.onExportIsObject (eval at <anonymous> (app.js:1:1494667), <anonymous>:11762:13)
    at async MacroChoiceEngine.userScriptDelegator (eval at <anonymous> (app.js:1:1494667), <anonymous>:11745:17)
    at async MacroChoiceEngine.executeUserScript (eval at <anonymous> (app.js:1:1494667), <anonymous>:11722:9)
    at async MacroChoiceEngine.executeCommands (eval at <anonymous> (app.js:1:1494667), <anonymous>:11692:17)
    at async MacroChoiceEngine.run (eval at <anonymous> (app.js:1:1494667), <anonymous>:11685:9)
    at async ChoiceExecutor.onChooseMacroType (eval at <anonymous> (app.js:1:1494667), <anonymous>:16108:9)
3index.html:84 Uncaught (in promise) Error: No results found.
    at getByQuery (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:84:11)
    at async start (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:42:21)
    at async MacroChoiceEngine.onExportIsFunction (eval at <anonymous> (app.js:1:1494667), <anonymous>:11758:23)
    at async MacroChoiceEngine.runScriptWithSettings (eval at <anonymous> (app.js:1:1494667), <anonymous>:11728:13)
    at async MacroChoiceEngine.onExportIsObject (eval at <anonymous> (app.js:1:1494667), <anonymous>:11762:13)
    at async MacroChoiceEngine.userScriptDelegator (eval at <anonymous> (app.js:1:1494667), <anonymous>:11745:17)
    at async MacroChoiceEngine.executeUserScript (eval at <anonymous> (app.js:1:1494667), <anonymous>:11722:9)
    at async MacroChoiceEngine.executeCommands (eval at <anonymous> (app.js:1:1494667), <anonymous>:11692:17)
    at async MacroChoiceEngine.run (eval at <anonymous> (app.js:1:1494667), <anonymous>:11685:9)
    at async ChoiceExecutor.onChooseMacroType (eval at <anonymous> (app.js:1:1494667), <anonymous>:16108:9)
VM155:15134 Array(4)
VM155:15134 Array(3)
index.html:84 Uncaught (in promise) Error: No results found.
    at getByQuery (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:84:11)
    at async start (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:42:21)
    at async MacroChoiceEngine.onExportIsFunction (eval at <anonymous> (app.js:1:1494667), <anonymous>:11758:23)
    at async MacroChoiceEngine.runScriptWithSettings (eval at <anonymous> (app.js:1:1494667), <anonymous>:11728:13)
    at async MacroChoiceEngine.onExportIsObject (eval at <anonymous> (app.js:1:1494667), <anonymous>:11762:13)
    at async MacroChoiceEngine.userScriptDelegator (eval at <anonymous> (app.js:1:1494667), <anonymous>:11745:17)
    at async MacroChoiceEngine.executeUserScript (eval at <anonymous> (app.js:1:1494667), <anonymous>:11722:9)
    at async MacroChoiceEngine.executeCommands (eval at <anonymous> (app.js:1:1494667), <anonymous>:11692:17)
    at async MacroChoiceEngine.run (eval at <anonymous> (app.js:1:1494667), <anonymous>:11685:9)
    at async ChoiceExecutor.onChooseMacroType (eval at <anonymous> (app.js:1:1494667), <anonymous>:16108:9)
VM155:15134 Array(3)
VM155:15134 Array(2)
VM155:15134 Array(2)
index.html:84 Uncaught (in promise) Error: No results found.
    at getByQuery (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:84:11)
    at async start (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:42:21)
    at async MacroChoiceEngine.onExportIsFunction (eval at <anonymous> (app.js:1:1494667), <anonymous>:11758:23)
    at async MacroChoiceEngine.runScriptWithSettings (eval at <anonymous> (app.js:1:1494667), <anonymous>:11728:13)
    at async MacroChoiceEngine.onExportIsObject (eval at <anonymous> (app.js:1:1494667), <anonymous>:11762:13)
    at async MacroChoiceEngine.userScriptDelegator (eval at <anonymous> (app.js:1:1494667), <anonymous>:11745:17)
    at async MacroChoiceEngine.executeUserScript (eval at <anonymous> (app.js:1:1494667), <anonymous>:11722:9)
    at async MacroChoiceEngine.executeCommands (eval at <anonymous> (app.js:1:1494667), <anonymous>:11692:17)
    at async MacroChoiceEngine.run (eval at <anonymous> (app.js:1:1494667), <anonymous>:11685:9)
    at async ChoiceExecutor.onChooseMacroType (eval at <anonymous> (app.js:1:1494667), <anonymous>:16108:9)
index.html:34 Uncaught (in promise) Error: No query entered.
    at start (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:34:11)
    at async MacroChoiceEngine.onExportIsFunction (eval at <anonymous> (app.js:1:1494667), <anonymous>:11758:23)
    at async MacroChoiceEngine.runScriptWithSettings (eval at <anonymous> (app.js:1:1494667), <anonymous>:11728:13)
    at async MacroChoiceEngine.onExportIsObject (eval at <anonymous> (app.js:1:1494667), <anonymous>:11762:13)
    at async MacroChoiceEngine.userScriptDelegator (eval at <anonymous> (app.js:1:1494667), <anonymous>:11745:17)
    at async MacroChoiceEngine.executeUserScript (eval at <anonymous> (app.js:1:1494667), <anonymous>:11722:9)
    at async MacroChoiceEngine.executeCommands (eval at <anonymous> (app.js:1:1494667), <anonymous>:11692:17)
    at async MacroChoiceEngine.run (eval at <anonymous> (app.js:1:1494667), <anonymous>:11685:9)
    at async ChoiceExecutor.onChooseMacroType (eval at <anonymous> (app.js:1:1494667), <anonymous>:16108:9)
    at async ChoiceExecutor.execute (eval at <anonymous> (app.js:1:1494667), <anonymous>:16084:17)
3index.html:84 Uncaught (in promise) Error: No results found.
    at getByQuery (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:84:11)
    at async start (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:42:21)
    at async MacroChoiceEngine.onExportIsFunction (eval at <anonymous> (app.js:1:1494667), <anonymous>:11758:23)
    at async MacroChoiceEngine.runScriptWithSettings (eval at <anonymous> (app.js:1:1494667), <anonymous>:11728:13)
    at async MacroChoiceEngine.onExportIsObject (eval at <anonymous> (app.js:1:1494667), <anonymous>:11762:13)
    at async MacroChoiceEngine.userScriptDelegator (eval at <anonymous> (app.js:1:1494667), <anonymous>:11745:17)
    at async MacroChoiceEngine.executeUserScript (eval at <anonymous> (app.js:1:1494667), <anonymous>:11722:9)
    at async MacroChoiceEngine.executeCommands (eval at <anonymous> (app.js:1:1494667), <anonymous>:11692:17)
    at async MacroChoiceEngine.run (eval at <anonymous> (app.js:1:1494667), <anonymous>:11685:9)
    at async ChoiceExecutor.onChooseMacroType (eval at <anonymous> (app.js:1:1494667), <anonymous>:16108:9)
VM155:15134 Array(2)
VM262:84 Uncaught (in promise) Error: No results found.
    at getByQuery (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:84:11)
    at async start (eval at getUserScript (eval at <anonymous> (app.js:1:1494667)), <anonymous>:42:21)
    at async MacroChoiceEngine.onExportIsFunction (eval at <anonymous> (app.js:1:1494667), <anonymous>:11758:23)
    at async MacroChoiceEngine.runScriptWithSettings (eval at <anonymous> (app.js:1:1494667), <anonymous>:11728:13)
    at async MacroChoiceEngine.onExportIsObject (eval at <anonymous> (app.js:1:1494667), <anonymous>:11762:13)
    at async MacroChoiceEngine.userScriptDelegator (eval at <anonymous> (app.js:1:1494667), <anonymous>:11745:17)
    at async MacroChoiceEngine.executeUserScript (eval at <anonymous> (app.js:1:1494667), <anonymous>:11722:9)
    at async MacroChoiceEngine.executeCommands (eval at <anonymous> (app.js:1:1494667), <anonymous>:11692:17)
    at async MacroChoiceEngine.run (eval at <anonymous> (app.js:1:1494667), <anonymous>:11685:9)
    at async ChoiceExecutor.onChooseMacroType (eval at <anonymous> (app.js:1:1494667), <anonymous>:16108:9)
1 Like

No, it looks like the the movies.js file will automatically fill in “fileName” for you.

Thank you. Any idea why I am not getting the movie?

I only have some vague ideas for investigation, sorry. The errors you shared tell me that it’s getting stuck at the same place every time getByQuery, which is, as you said, where it connects to OMDB to try to find the movie.

One investigative tactic could be to check the “Network” tab of the Developer Console after you try to put in a title, and see if it is making a network request out to OMDB and if so what the response is.

Another could be (if you know some Javascript), changing movie.js (which you won’t be able to open in Obsidian, so you’ll want to open in some other text editor program) to add some additional console.log(...) lines in getByQuery to print out any variables or parameters, but there’s not a ton in that function.

Hopefully someone else can help further!

Thank you very much for your reply. I will mess with it some more. Really like the idea that I can get my movie information into Obsidian. Take care.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.