Comments (8)
Hello @sagnik-sanyal thank you for submitting this issue. We will look into this and get back to you!
from amplify-flutter.
Hi @tyllark any update on this issue ?
from amplify-flutter.
Hello @sagnik-sanyal - Currently you would need to create a new operation.
Alternatively, you may be able to provide your own http client to the API plugin and use an http client that retries the request. I would need to look into this a bit more to see if this would work.
Let me know if you have other questions.
from amplify-flutter.
@Jordan-Nelson i would like to have an example of the second implementation that you mentioned, for retrying and cancelling the request
from amplify-flutter.
@sagnik-sanyal - Here is an example of using a custom http client. This is a fairly simple example of adding a header to each request. I would need to confirm if this can be used to retry requests.
from amplify-flutter.
Thanks @Jordan-Nelson for providing valuable insights, yeah I will try this to achieve retrying the requests, but can this be cancelled or how to access whether it has been cancelled from the custom client ( let's say the user left the screen while the request was retrying so there's no need to perform the request ) ?
from amplify-flutter.
RestOperation should still be cancellable when using a custom client. RestOperation
has a cancel()
method.
from amplify-flutter.
Related Issues (20)
- Unable to instantiate activity ComponentInfo HOT 2
- Document how to set a model field to null HOT 3
- Document how to get encoded access token HOT 5
- Inspect your amplifyconfiguration.dart and ensure that the string is proper json HOT 5
- Input resolver for TextField errorText and Hint
- Cloud Messaging API (Legacy) will be removed HOT 3
- Face Liveness support HOT 1
- Error occurred awaiting for device token to register device with Pinpoint, Invalid identity pool configuration. Check assigned IAM roles for this pool. HOT 5
- iOS sync stop when app is in background and screen off only in Release HOT 6
- How to pass SignInOptions to Authenticator v2? HOT 14
- [Gen 2] Feature request: Support secondary index query with sorting HOT 3
- [Gen2] dynamodb error when having optional sortkeys HOT 3
- How to Use auth resources without an Amplify backend? HOT 9
- S3 Upload Fails With Amplify Gen 2: Error: "S3 access denied when making the API call" (amplify_s3 v2.1+ | Amplify Gen 2) HOT 18
- [Gen2] storage plugin causes 'Lost connection to device.' on debugging session HOT 4
- [Gen2] Cannot return null for non-nullable type: xxx within parent HOT 5
- `Concurrent modification during iteration` issue in Amplify Core HOT 4
- Mobile Keyboard dissapear when press in the SignInFormField.password() on web HOT 3
- Amplify configure() throwing PushNotificationException after refresh token has expired HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-flutter.