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

AWSHttpRequest body creation fails on web #4847

Open
1 of 14 tasks
livioschlaepfer opened this issue May 7, 2024 · 1 comment
Open
1 of 14 tasks

AWSHttpRequest body creation fails on web #4847

livioschlaepfer opened this issue May 7, 2024 · 1 comment
Assignees
Labels
bug Something is not working; the issue has reproducible steps and has been reproduced

Comments

@livioschlaepfer
Copy link

livioschlaepfer commented May 7, 2024

Description

Using AWSHttpRequest from package aws_common fails to create a request body on web.
See attached screenshots of created request mobile vs web.

Categories

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

Steps to Reproduce

  1. Create an AWSHttpRequest

final request = AWSHttpRequest.post(
Uri.parse(''),
headers: const {
AWSHeaders.contentType: 'application/json',
},
body: json.encode({
'first_name': 'max',
'last_name': 'muster',
}).codeUnits,
);

  1. Compare created request on mobile and web

Screenshots

Generated request object on web:
image

Generated request object on mobile:
image

Platforms

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

Flutter Version

3.16.8

Amplify Flutter Version

aws_common: 0.6.3

Deployment Method

Amplify CLI

Schema

No response

@khatruong2009 khatruong2009 added the pending-triage This issue is in the backlog of issues to triage label May 7, 2024
@khatruong2009
Copy link
Contributor

Hi @livioschlaepfer, we will take a look at this issue and get back to you when we have an update.

@khatruong2009 khatruong2009 self-assigned this May 9, 2024
@khatruong2009 khatruong2009 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 May 9, 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
Projects
None yet
Development

No branches or pull requests

2 participants