I’m trying to use the x-callback to open a note, which causes an error in Apple Shortcuts. According to X-callback-url Scheme documentation the Bear x-callback supports x-error, however I can’t get it to work. The x-error doesn’t appear to be called after the first part of the x-callback fails.
I remember Sonoma having system-wide issues x-success and x-error but I suspect here the issue is the encoding of the parameter. Should be something as follows
Thanks for the quick response. Your solution does indeed work if I run it in the browser (macOS or “Open URLs”-action in Shortcuts). Wasn’t aware the x-error part needed double encoding. Maybe you could add some examples of x-error and x-success use to the x-callback documentation - that would be super helpful.
I’m however left extremely puzzled as to why it does still not work with the Shortcuts’ action “Open X-Callback URL”… It continues to throw an error if the note does not exist. How can this be when it works with the “Open URLs”-action?
So annoying… There seems to be a lot of Shortcut actions that only work so-so. Even the encode URL action doesn’t encode the first part of the x-error, so no wonder it failed at double encoding. I’ve filed a report to Apple against all odds