Thank you for using the Microsoft Q&A forum and for getting back to us. We are glad to hear that the issue has been resolved.
As you mentioned, rechecking the mixed-up keys and endpoint and rectifying them has resolved the issue. It is great to know that the problem was identified and resolved by you.
This error can also occur in other scenarios where, you may be using an old version of the SDK. We recommend using the latest version of the SDK to avoid any potential issues. You can refer to a similar post that has been previously answered to gain more insight.
I hope you understand. Thank you.
Please do not forget to click Accept Answer
and Yes
for was this answer helpful, wherever the information helps you. This can be beneficial to other community members as well.