emilk / ehttp

Minimal Rust HTTP client for both native and WASM
Apache License 2.0
324 stars 30 forks source link

Demo Ehttp on Mobile: JsValue Error. Failed to fetch. #20

Closed robertpauson closed 11 months ago

robertpauson commented 1 year ago

Long await and then Screenshot_2023-01-04_19-50-14

ScreenCast:

https://user-images.githubusercontent.com/114532210/210627851-86dc5dde-af6e-4c99-b476-8dc8a28f4f4e.mp4

On Chrome same thing, but took longer.

Will it be solved? It can hang entire WASM apps.

emilk commented 1 year ago

It works on Safari on my iPhone.

Will it be solved? It can hang entire WASM apps.

I think you'll need to dig into this youself, since you can reproduce it.

The whole code is extremely short and simple: https://github.com/emilk/ehttp/blob/master/ehttp/src/web.rs

emilk commented 1 year ago

I suspect this is a CORS issue. We should improve the error message.

emilk commented 11 months ago

Error message was improved in https://github.com/emilk/ehttp/pull/33