Skip to content

API call fails silently if host is unreachable #640

@anttikuuskoski

Description

@anttikuuskoski

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When an API call to an unresponsive host is performed, the subsequent actions in the action chain are never executed. This happens also when other types of networking errors are performed such as: nonexistent URL, url blocked by Chrome (blocked due to mixed-content).

Expected Behavior

An API call to unresponsive host (or to a nonexistent URL or whatever the error source) should at the very least not terminate the action chain, especially as there seems to be no way to catch such errors. As the call's success state can be used directly in action conditionals, it would be natural if the call would simply be labeled as unsuccessful.

In my opinion, having a host down or the user mistyping an URL etc. is a normal thing to happen and should be dealt as such from actions' point of view.

Steps To Reproduce

  1. Create an API call to https://nonexistent6592831.com
  2. Create an action chain with:
  • State update setting a variable to known value
  • backend API call
  • condition testing for the API call response options to be "Succeeded"
  • State updates in both branches setting a variable to known values.
  1. Run the application.
  2. The app state update before the API call is triggered but actions in the conditional branches are not.

Screenshot of the action chain: image

Bug Report Code

IT4Kzsncx851xMNc18/iKMFKhjwWKVwjauYsltVDb0ocIZSqG7l/TMnOVBJuOLC0dwlUf2f8jnsJ+d3emvzAUfk3EzeBUaphybVQdguWWnu6RcWrBaisf25/De1NC2Kk4KWNgBB4PfpaWV4l6jn3F/CyfBPXQZDsPVg7AeaLKZOK2SrDX1iXc2URm05KZDPz

Context

In my application I need to poll if a certain host is available or not and this is proving very hard to do as the action chains fail to run through. This is already the second project that I'm considering scrapping due to poor networking error handling.

Additional info

No response

Environment

- FlutterFlow version: 3.1
- Platform: Web
- Browser name and version: Chrome 111.0.5563.65 (Official Build) (64-bit)
- Operating system and version affected: Windows 10 Pro 22H2

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions