FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
121 stars 18 forks source link

API post call returns 503 error #1807

Closed filippobertossi closed 10 months ago

filippobertossi commented 11 months ago

Has your issue been reported?

Current Behavior

I am trying to integrate imageKit api in my app but the post call doesn't work. I tried the same api call from terminal and from postman and it works fine but when I try in flutterflow test api call page it returns null. If I do it on safari I get the popup XMLHttpError and when I try in testing from the console the api call fails with 503 error.

Expected Behavior

The api call should works as with postman.

Steps to Reproduce

  1. Create a new project
  2. create a post api call with url https://upload.imagekit.io/api/v1/files/upload
  3. set the header as Authorization: Basic [apiKey] with your api call from your imageKit account
  4. fill the body with a json with the fields "file" a url of a photo or video and "fileName" the name you want
  5. Run test

For more informations about the api of imageKit here is the specific documentation: https://docs.imagekit.io/api-reference/upload-file-api/server-side-file-upload

Reproducible from Blank

Bug Report Code (Required)

IT48lvHqx89NodhE7ZDUKflR/Ts5JkM7RpEV0utuTRM8KOPaPOw+Ps/BM0RCOerhd29bMU20hWoW08rwioTIG/AoBzmCfIRHyZNQWgnyIUC6V5SsFJWgQXZAI8BgfUOM0MKRhRJNOvtsR3gb3EOqNenIaCjAJKbGNTMaDq/LZO4=

Context

I am trying to implement a simple post api call that works fine on postman as on terminal

Visual documentation

Screenshot 2023-11-08 at 23 23 59 Screenshot 2023-11-08 at 23 24 43

Additional Info

No response

Environment

- FlutterFlow version: v4.0.2
- Platform: any
- Browser name and version: any
- Operating system and version affected: macOS
github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

FilliTech commented 11 months ago

Hi guys any news? @hariprasadms @aemelyanovff

hariprasadms commented 10 months ago

Hi @filippobertossi - Thanks for submitting the issue. Considering the nature of issue, I guess its more to do with configurations. I recommend first you reach to FF support team to get more help around it. If they confirm this is not working for any reason, you can come here to re-open the issue.

I can confirm the Api post requests are working as expected. Thanks