-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing web API within WASM #3250
Comments
Thanks for the report! Do you see any error message in the browser debug console ? |
Thanks, Jerome, for pointing me in the right direction … In fact, the transmission was fine in every case, but as we try to display the result with an MessageDialog the underlaying JavaScript interprets the text. So short texts or numbers worked fine, but JSON and some character sequences broke the MessageDialog … So for everybody our working “test display”:
A Logs before the correction: |
Right! This is a case of invalid escaping inside of Uno in
The content should be escaped using uno/src/Uno.Foundation/Runtime.wasm.cs Line 381 in 6aa544c
|
@jeromelaban Maybe a duplicate of #2501? |
Regarding our basic problem: a UNO / WASM / WS sample we made one: https://github.com/ZeProgFactory/UNO.Sample.Webservice
|
@carldebilly you are right, but the issue and how to work around / correct it are better documented in this exchange. Other wise you should add @jeromelaban comments to the other issue. |
Indeed, let's close this issue and get the other one fixed instead. |
We made several tests in order to access web API. We found no problems when in UWP context but when we are in WASM context we only could retrieve correctly short message (Date, time, number, ... ). As soon as the answer is a bit longer, we won’t get it on WASM.
We are using the following code snippet:
Any suggestions? We didn’t fin a running sample. So it would be nice to add one to the playground.
For which Platform:
The text was updated successfully, but these errors were encountered: