Hi!
Over the last few days I’ve had problems with my AfO Shortcuts not being able to finish. They get to the stage where Obsidian is opened, but then nothing more happens.
What are common reasons for this and how can it be avoided?
Hi!
Over the last few days I’ve had problems with my AfO Shortcuts not being able to finish. They get to the stage where Obsidian is opened, but then nothing more happens.
What are common reasons for this and how can it be avoided?
Sounds like Obsidian takes the call but is not returning results…? The most common reason: Actions URI was disabled for some reason. An external call comes in → nothing is there to handle it → “”
If Actions URI is indeed still running, and you’re willing and able, you could open Obsidian’s console (⌘⌥I
) and see if there are any errors showing when you make a Shortcuts call and it hangs.
If you’re not comfortable doing that you could install my Logstravaganza plugin (which logs console output to a new note), enable it, restart Obsidian, then try a Shortcuts call or two. Disable the plugin, and send me the resulting note via feedback mail so I can take a look.
HTH!
Actions URI is indeed running, most of the time the Shortcut finishes when I launch the shortcut again.
This is happening on iOS. Could I access the console on mobile as well?
I think the easiest way is indeed Logstravaganza — I’ve yet to find a way to get the actual Web Inspector going in Obsidian mobile.
So this is what got written to the log when the shortcut just now wasn’t able to finish.
Timestamp | Originator | Level | Message |
---|---|---|---|
2023-10-12T15:21:49.783Z | plugin:logstravaganza | info | [Logstravaganza] Proxy set up (v1.2.0) |
2023-10-12T15:21:50.467Z | getToday@ | debug | [Calendar] Trying to switch Moment.js global locale to en-gb, got en-gb |
2023-10-12T15:21:50.504Z | registerRoutes@ | log | [Actions URI] Registered URI handlers: [“actions-uri”,“actions-uri/command”,“actions-uri/command/list”,“actions-uri/command/execute”,“actions-uri/dataview”,“actions-uri/dataview/table-query”,“actions-uri/dataview/list-query”,“actions-uri/folder”,“actions-uri/folder/list”,“actions-uri/folder/create”,“actions-uri/folder/rename”,“actions-uri/folder/delete”,“actions-uri/folder/trash”,“actions-uri/info”,“actions-uri/note”,“actions-uri/note/list”,“actions-uri/note/get”,“actions-uri/note/open”,“actions-uri/note/create”,“actions-uri/note/append”,“actions-uri/note/prepend”,“actions-uri/note/delete”,“actions-uri/note/trash”,“actions-uri/note/rename”,“actions-uri/note/search-string-and-replace”,“actions-uri/note/search-regex-and-replace”,“actions-uri/omnisearch”,“actions-uri/omnisearch/all-notes”,“actions-uri/omnisearch/open”,“actions-uri/daily-note”,“actions-uri/daily-note/list”,“actions-uri/daily-note/get-current”,“actions-uri/daily-note/get-most-recent”,“actions-uri/daily-note/open-current”,“actions-uri/daily-note/open-most-recent”,“actions-uri/daily-note/create”,“actions-uri/daily-note/append”,“actions-uri/daily-note/prepend”,“actions-uri/daily-note/search-string-and-replace”,“actions-uri/daily-note/search-regex-and-replace”,“actions-uri/weekly-note”,“actions-uri/weekly-note/list”,“actions-uri/weekly-note/get-current”,“actions-uri/weekly-note/get-most-recent”,“actions-uri/weekly-note/open-current”,“actions-uri/weekly-note/open-most-recent”,“actions-uri/weekly-note/create”,“actions-uri/weekly-note/append”,“actions-uri/weekly-note/prepend”,“actions-uri/weekly-note/search-string-and-replace”,“actions-uri/weekly-note/search-regex-and-replace”,“actions-uri/monthly-note”,“actions-uri/monthly-note/list”,“actions-uri/monthly-note/get-current”,“actions-uri/monthly-note/get-most-recent”,“actions-uri/monthly-note/open-current”,“actions-uri/monthly-note/open-most-recent”,“actions-uri/monthly-note/create”,“actions-uri/monthly-note/append”,“actions-uri/monthly-note/prepend”,“actions-uri/monthly-note/search-string-and-replace”,“actions-uri/monthly-note/search-regex-and-replace”,“actions-uri/quarterly-note”,“actions-uri/quarterly-note/list”,“actions-uri/quarterly-note/get-current”,“actions-uri/quarterly-note/get-most-recent”,“actions-uri/quarterly-note/open-current”,“actions-uri/quarterly-note/open-most-recent”,“actions-uri/quarterly-note/create”,“actions-uri/quarterly-note/append”,“actions-uri/quarterly-note/prepend”,“actions-uri/quarterly-note/search-string-and-replace”,“actions-uri/quarterly-note/search-regex-and-replace”,“actions-uri/yearly-note”,“actions-uri/yearly-note/list”,“actions-uri/yearly-note/get-current”,“actions-uri/yearly-note/get-most-recent”,“actions-uri/yearly-note/open-current”,“actions-uri/yearly-note/open-most-recent”,“actions-uri/yearly-note/create”,“actions-uri/yearly-note/append”,“actions-uri/yearly-note/prepend”,“actions-uri/yearly-note/search-string-and-replace”,“actions-uri/yearly-note/search-regex-and-replace”,“actions-uri/search”,“actions-uri/search/all-notes”,“actions-uri/search/open”,“actions-uri/tags”,“actions-uri/tags/list”,“actions-uri/vault”,“actions-uri/vault/open”,“actions-uri/vault/close”,“actions-uri/vault/info”,“actions-uri/vault/list-folders”,“actions-uri/vault/list-all-files”,“actions-uri/vault/list-non-notes-files”] |
2023-10-12T15:21:51.783Z | undefined | log | Dataview: all 1327 files have been indexed in 1.282s (1327 cached, 0 skipped). |
That’s all Logstravaganza could gather when the Shortcuts call stalled? That’s not much, hmm. I don’t think Actions URI was invoked at all, otherwise there’d be a log entry.
My guess is that the call came in before Actions URI was fully initialized. For starters, I would try to add a native Open App action to the very beginning of the workflow to open Obsidian. This will initialize Obsidian, and the next time a call to the app is made from the workflow, it should be fully up and running.
If that’s not it, try deactivating all non-essential plugins, i.e. anything you don’t need for that particular workflow, and try again. Maybe that’ll surface a misbehaving other plugin.
I’ve added an Open App action and a Wait 1 sec after. Hopefully that will help!