-
Notifications
You must be signed in to change notification settings - Fork 28
Description
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:

need help
Expected Behavior
Private api call should work as public api call
Steps To Reproduce
- create post api call (header : Content-Type: application/json)
- add a parameter of type JSON
- make call private
- test the response --> works on FF
- 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
Environment
- FlutterFlow version: 3.7.3
- Platform: web, android
- Browser name and version: NA
- Operating system and version affected: NA
