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 · 4 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
Contributor

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.

@tyllark tyllark added pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. pending-community-response Pending response from the issue opener or other community members labels Dec 19, 2024
@tyllark
Copy link
Member

tyllark commented Dec 19, 2024

Hello @raphire08, were you able to reproduce the issue on the latest version of Amplify flutter?

@raphire08
Copy link
Author

@tyllark

Project is still using amplify v1 and it will be quite sometime before we get the chance to move to v2. Thanks

@github-actions github-actions bot added pending-maintainer-response Pending response from a maintainer of this repository and removed pending-community-response Pending response from the issue opener or other community members labels Dec 23, 2024
@tyllark tyllark removed pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. pending-maintainer-response Pending response from a maintainer of this repository labels Dec 26, 2024
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

4 participants