Skip to content
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

Query method in Amplify API hangs in between when internet is disconnected in middle of call #5513

Open
3 of 14 tasks
raphire08 opened this issue Oct 1, 2024 · 2 comments
Open
3 of 14 tasks
Labels
bug Something is not working; the issue has reproducible steps and has been reproduced GraphQL API Issues related to the API (GraphQL) Category to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided

Comments

@raphire08
Copy link

Description

The query method in Amplify API Amplify.API.query<T> does not throws when internet is disconnected in between the call.

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

  1. Try any GraphQL response as mentioned below, kill the internet in between the call
  2. Expected: Query function should throw
  3. Actual: It does not throws and the call is open for more than 10-15 mins
  4. version amplify_api: ^1.6.1
 GraphQLResponse<T>? response;
    try {
      response = await Amplify.API.query<T>(request: request).response;
    } catch (e, s) {
      // print error
      response = null;

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.16.9

Amplify Flutter Version

1.6.1

Deployment Method

Amplify CLI (Gen 1)

Schema

No response

@github-actions github-actions bot added pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Oct 1, 2024
@Equartey Equartey added the GraphQL API Issues related to the API (GraphQL) Category label Oct 2, 2024
@Equartey
Copy link
Member

Equartey commented Oct 2, 2024

Hi @raphire08, thanks for reporting this. We'll need to investigate the best solution for this use case. We will update you here when we have made progress.

@github-actions github-actions bot removed the pending-maintainer-response Pending response from a maintainer of this repository label Oct 2, 2024
@Equartey Equartey added the to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided label Oct 3, 2024
@NikaHsn NikaHsn added bug Something is not working; the issue has reproducible steps and has been reproduced and removed pending-triage This issue is in the backlog of issues to triage labels Oct 14, 2024
@NikaHsn
Copy link
Member

NikaHsn commented Oct 14, 2024

@raphire08 I would recommend upgrading to the latest version as Amplify Flutter v1.x is in maintenance mode and will only receive critical fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working; the issue has reproducible steps and has been reproduced GraphQL API Issues related to the API (GraphQL) Category to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided
Projects
None yet
Development

No branches or pull requests

3 participants