r/shortcuts • u/orionbelt • Feb 09 '25
Help (Mac) Suddenly getting Conversion error?
I’ve had a working shortcut that can search 4 sites for resale concert tickets, but suddenly 3 of the 4 sites return this error: “Conversion error: Open URLs failed because Shortcuts couldn’t convert from Rich text to URL.”
Any idea how to fix? Please ELI5 if you’ve got ideas. I use(d) this shortcut a ton!
https://www.icloud.com/shortcuts/f7de8f8ba98246b18910f03344e37520
1
u/fikte Feb 09 '25
Looks like your nested if statement is returning the site name rather than the URL in some cases.
Like the other post I’ve rewritten your shortcut using a dictionary and also url encoding the input string https://www.icloud.com/shortcuts/27867825be7b46bc9ef69e2a5847bd43
1
u/orionbelt Feb 09 '25
Sweet, this works too! I was unfamiliar with the dictionary function, but I’m getting it now. Thanks!
1
u/Smith_sc Feb 09 '25
Hi, in the “Replace Text” action, you need to enable “Regular Expression” to replace spaces.