Hi PM16,
Unfortunately, I can't reproduce this issue on my side, this API worked well as below:

Could you explain more about how and where you used this API? In the code behind or in a BackgroundTask?
If possible, could you please provide a simple demo for troubleshooting?
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.