Obsidian URI hangs when it's supposed to return a value

Steps to reproduce

  • Open the Apple Shortcuts app
  • Create a new empty shortcut
  • Drag the action “Open X-Callback URL”
  • Type obsidian://new?&vault=Obsidian%20Sandbox&file=testnote in the X-Callback URL field of that action
  • Run the shortcut

Expected result

The note is created and the shortcut continues its execution

Actual result

The note is created but Obsidian never returns control to Shortcuts. The shortcut hangs.

Environment

SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.6.7
Operating system: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000 24.1.0
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

I’ve used the Shortcuts app as the simplest way I could think of to reproduce the bug, but the same happens with every other app that expects a result from Obsidian after calling a URI (e.g. Drafts, Keyboard Maestro, xcall)
I can confirm that everything worked fine up to Obsidian 1.6.7 (at least, maybe even with later versions, but definitely not with the current one)

Confirming impact here as well. I use KeyboardMaestro → xcall to fire up a new note in my workflow, xcall (whether through KM or directly) never receives a response. This ends up keeping the KM macro from completing, and thus then also stacks many executions waiting for a response

I tested a little further, I used KM to create the new url without the x-success and x-error parameters, and that works fine. This is ok for my own personal workflow, as I’m not using the return data.

you need to manually enable URL callbacks.

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