Skip to content

facing Headers issue on API Call #1823

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

Closed
mehsaandev opened this issue Jan 8, 2025 · 2 comments
Closed

facing Headers issue on API Call #1823

mehsaandev opened this issue Jan 8, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@mehsaandev
Copy link
Contributor

I am calling the API but the response is the following:
Content type must be: application/json

I explicitly added Content-Type: application/json header but still got the same response

Here's the sample screen:
https://studio.ensembleui.com/app/SPOQKXOllz0n47JcVB6a/screen/inNqysP3bfxCCj3uQYPz

@kmahmood74
Copy link
Collaborator

see this and this for the underlying issue in the flutter http package and the workaround by setting bodybytes

@kmahmood74 kmahmood74 added the bug Something isn't working label Jan 8, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Ensemble Jan 8, 2025
@kmahmood74 kmahmood74 moved this from Backlog to In Progress in Ensemble Jan 8, 2025
kmahmood74 added a commit that referenced this issue Jan 9, 2025
@kmahmood74
Copy link
Collaborator

fixed. Whenever content-type header is specified, we will make sure it does not get the charset=utf attached to it.

@github-project-automation github-project-automation bot moved this from In Progress to Released in Ensemble Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Released
Development

No branches or pull requests

2 participants