The problem is undoubtedly in the OpenUrl, as it is triggered by the bot. since the same action triggered by the bot, when triggered by hand with the button, works fine, and any other action triggered by the bot also works.
What surprises me is that you told me that you tried it successfully. Could you share your test to compare?