Comments (5)
Hi @livioschlaepfer, we will take a look at this issue and get back to you when we have an update.
from amplify-flutter.
@khatruong2009 are there any updates on this?
from amplify-flutter.
@livioschlaepfer I am not able to reproduce the exact issue you are facing. I see there is a body on both web and mobile. The body doesn't seem to display correctly in Dart's dev tools when running on web (see screenshot below).
However, the body is present. I can listen to it an receive data (see code snippet below). I also see the body in Chrome's dev tools when I make the request. I am unsure why it is not displaying correctly in Dart's dev tools. This maybe be an issue with Dart's dev tools.
Is the issue you are facing consistent with what I have described?
Here is the code snippet I was using:
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(),
body: Center(
child: Column(
children: [
FilledButton(
onPressed: () {
final request = AWSHttpRequest.post(
Uri.parse('https://jsonplaceholder.typicode.com/posts'),
headers: const {
AWSHeaders.contentType: 'application/json; charset=UTF-8',
},
body: jsonEncode({
'title': 'foo',
'body': 'bar',
'userId': 1,
}).codeUnits,
);
request.body.listen((data) => safePrint('got data: $data'));
safePrint('body: ${request.body}');
request.send();
},
child: const Text('request'),
),
],
),
),
),
);
}
from amplify-flutter.
@livioschlaepfer if you are not seeing the value at all it is likely because you have the following dart settings disabled: Show Getters In Debug Views. You can follow this comment to enable/disable it.
from amplify-flutter.
I created a minimal reproduction of this and opened an issue here. This seems like a dart issue to me but maybe it is intentional that this is not supported. Either way I don't think it is a bug in amplify_common. I am going to update this to a question for now.
from amplify-flutter.
Related Issues (20)
- Network error when trying to authenticate from a release apk HOT 5
- How to use SyncExpression with GroupPredicate HOT 3
- Gen2 - Quick Start guide does not work - ConfigurationError: The provided configuration is not a valid json HOT 3
- Build failed with an exception
- Error message is unclear when oauth is missing from config HOT 3
- [iOS] building with debug flag makes the app crash HOT 4
- aws_signature_v4 - flutter and aws lex bot integration HOT 3
- Data not updated by API GraphQL HOT 3
- Feature Request: GraphQL query with sorting by date with secondary index HOT 7
- DataStore initial sync slower after recreating auth and schema has owner-based permissions HOT 6
- amplify_auth_cognito:compileDebugJavaWithJavac HOT 10
- Datastore query returns empty list even when isSynced: true in observeQuery snapshot. HOT 2
- [aws_common] update the "js" version in pubspec HOT 2
- a.customType({}) modelgen issue - Single-Table-Design flutter Amplify-gen2 HOT 2
- feature request: Emit info from signInWithWebUI through Auth Hub HOT 8
- Amplify.configure() incorrectly throws JSON parsing validation error on valid JSON string. Improve error login on Amplify.configure() HOT 4
- fix: expired link at document HOT 1
- Unable to instantiate activity ComponentInfo HOT 2
- Document how to set a model field to null HOT 3
- JWT wrong encode leads to invalid signature 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.