-
Notifications
You must be signed in to change notification settings - Fork 362
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
Flutter web app freezes when http get request is made #400
Comments
My Flutter App has the same problem, it will last more than 3 seconds. And i'm using |
Is there an error in the browser console? Does this reproduce if you use |
@natebosch I appreciate your reply! I wish I replied sooner. My Github notification was set to a dead emailaddress. I cannot show the error in the browser console at the moment. In the meanwhile, I ran into another issue: flutter/flutter#54040. This issue leads to me being unable to run the app in the browser at all. |
It works. This may have been part of the issue: flutter/flutter#41336 Yet I believe it also may have to do with an CORS error (which I also fixed by using a proxy). |
I would like to fetch information from an API using an HTTP GET request to a public endpoint which returns XML, in Flutter (web).
However, when I run the code in debug mode, and I reach the screen where the API HTTP request is made, app freezes.
I wrote the following code:
The code works when I change the http.get url to for instance 'https://jsonplaceholder.typicode.com/todos/1'. The http get request works to the 'https://www.gahetna.nl/beeldbank-api/opensearch/' endpoint, when I use curl in command line.
There are no error messages shown in Visual Studio Code IDE when the screen freezes.
The text was updated successfully, but these errors were encountered: