Skip to content

Private API post call not working after publishing #600

@waminos

Description

@waminos

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

hi @hariprasadms @shelpert @agreaves
I am using post api call, it works fine when public but throw 400 error when private. You can see the payload below, it seems FF parse the JSON payload also as String.

Parameters: (I use variables)
a string --> OK
b int --> OK
c JSON --> Parmeter message ,PROBLEM = should be like this : [{"role":"user1","content":"hi"},{"role":"user2","content":"hey you"}] , when network inspecting, it looks like a string like below:
image

Should be like this :
image

need help

Expected Behavior

Private api call should work as public api call

Steps To Reproduce

  1. create post api call (header : Content-Type: application/json)
  2. add a parameter of type JSON
  3. make call private
  4. test the response --> works on FF
  5. publish web or run locally throw error 400

Bug Report Code

IT48i87huIhOxMNC7qXpbfl7/Sc5KVs7bLgzlMJhZ008J5TUB+x/evz4UBJoTbyndghYfU6KmT8d0+DIm9z1IfUDFySWQKp7z5NQbRfiQn2gabKyCJOaZXNEGshWBXa80bWFuCQnJsdiSE472WD3F9nLcD/sNb2yIW40QvmZKqzXvgfuQ0SLb3kNh1JWeC/v

Context

I can not publish my app thats uses chatgpt api.

Additional info

Error
image

Should be like this
image

Environment

- FlutterFlow version: 3.7.3
- Platform: web, android
- Browser name and version: NA
- Operating system and version affected: NA

Metadata

Metadata

Labels

status: confirmedIssue has been reproduced and confirmed as a bug.status: needs informationMore information/context is needed for assessment.type: bugSomething isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions