-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Can we access your project?
- 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
When calling my methods that must be parsed to a custom datatype, the mapping is not done and the data Object is empty. It was working before and now it has stopped.
I created a different method and used the api call response to generate a mapping object that matches the data types, and did the correct mapping to the fields in my pages and the data is not updated when api call is executred.
I have a method /getAIPriceSettingsByLocation and used its response and created a new data object using the payload
{
"status": "Success",
"location": "AU",
"ai_price_settings": {
"image2video": {
"baseprice": 1,
"vid10seconds": 2
},
"text2video": {
"baseprice": 1,
"vid10seconds": 1
}
}
}
Once the data type object was created per the payload, I did the mapping in the API Call settings DataType (parse as data type=true) and selected the data type recently created. The mapping object was empty when I ran the api call from my on page load.
When I changed it to predefined Json Paths it worked
Expected Behavior
Correct mapping should be done
Steps to Reproduce
Create page
Create an api method call
Create a data type using the api call payload response
Map the api call response as data type and link to the new data type object
Add api call to onPageLoad
Inspect value of new Object in debug
Reproducible from Blank
- The steps to reproduce above start from a blank project.
Bug Report Code (Required)
ITFTksjf35N2ofVY+Krcc8ZsoCAXCUMdXOczitVEew4bCIj4BLAHP+D4S1tBYO6zaH1AeGCZo3IC+ezyheD1CvBeBwutGI9x1aVTWhPPYz+jaLqUBam/PkElAZ9Yfmqi56uJvCRDNvRec04fwU61f+6/dz2Cf9qOYwx5e6fDbOY=
Visual documentation
Environment
- FlutterFlow version: 6.3.1
- Platform:MAcOs
- Browser name and version:
- Operating system and version affected: MacOS 15.6Additional Information
This issue also affected other Get call that was perfectly working before, also the data type was created using the payload from the response.
Note: All data types matches the type expected: string>string, number>integer, etc