-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Expected behavior (required)
I have a problem with the Call API. When I use without the Make Private API option everything works.
Current behavior (required)
Switching API Call to Make Private it doesn't work in the app. In the console logs I have the following error:
statusCode: 400, error: "ReferenceError: body is not defined
To Reproduce (required)
It seems to me that the problem is caused by using Body x-www-form-urlencoded. I have second API in my project, where I use in Body JSON - everything works fine with the Private API option.
- Register on Deepl.com (free)
- Add new API Calls with parameters:
Headers
Authorization: DeepL-Auth-Key YOUR KEY
Body
Body: x-www-form-urlencoded
Parameters: (I use variables)
text string hello world!
source_lang string EN
target_lang string DE
Bug Report Code (required, generate from Widget Tree)
IT4wkfLqw5R2oblE1qr+bPpVqDwWGDsmRK8klesaZCs9f5CvOpYUec/6PlpoOebgYFVAOU2Mp14zpOjnkfLlUsddPQSdb4hC/7tuZDzMeziVV8jfU/HUACkbeacOQSj6
Context (required)
I would like the API requests to DeepL to use the private API Call, because I am storing the authorization key.
Screenshots / recordings
I posted the screenshots on the community forum:
https://community.flutterflow.io/c/bugs/error-with-private-api
Your environment
- Version of FlutterFlow used: 3.3.4, January 12, 2023
- Platform (e.g. Web, MacOS Desktop): Web
- Browser name and version: Chrome
- Operating system and version (desktop or mobile): Desktop