QuickBooks-V3-DotNET-SDK icon indicating copy to clipboard operation
QuickBooks-V3-DotNET-SDK copied to clipboard

"Invalid URI or Environment" in Blazor WASM app

Open codyaweber opened this issue 1 year ago • 1 comments

Attempting to instantiate a new OAuth2Client in a Blazor WASM app always throws an "Invalid URI or Environment" error, while the exact same instantiation succeeds in a normal Blazor app. This occurs in the GetDiscoveryDoc method. The response from the discoveryClient.Get() call in that method has the following error:

Error connecting to https://developer.api.intuit.com/.well-known/openid_sandbox_configuration: Cannot wait on monitors on this runtime.

I understand this is due to the single threaded nature of WASM, but it'd be nice if this package worked in WASM, or if not, at least had a note saying that it is not intended for use on that runtime.

codyaweber avatar Jan 23 '24 21:01 codyaweber

Found this support article, just for reference - https://help.developer.intuit.com/s/article/OAuth2-for-desktop-apps-automated-apps-single-page-applications

codyaweber avatar Jan 24 '24 14:01 codyaweber