-
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
Hi all,
I’m developing an app that consumes the ChatGPT API. Since a few days ago, I’ve been experiencing random API call failures. After some manual testing, it appears the issue may be related to the proxy that FlutterFlow uses by default. The error is inconsistent — roughly 1 out of 5 requests succeeds.
Here’s the error message I’m seeing when I simply test the api in flutterflow:
Testing Call failed:
Error: ClientException: Failed to fetch, uri=https://warm-caverns-48629-92fab798385f.herokuapp.com/https://api.openai.com/v1/chat/completions
Error: ClientException: Failed to fetch, uri=https://whispering-citadel-11540-0a9768b9a869.herokuapp.com/https://api.openai.com/v1/chat/completions
While testing the app, I also found in the browser logs CORS warnings, which shouldn’t appear since I’m using the FlutterFlow proxy specifically to avoid CORS issues:
Access to fetch at 'https://warm-caverns-48629-92fab798385f.herokuapp.com/https://api.openai.com/v1/chat/completions' from origin 'https://ff-debug-service-frontend-pro-ygxkweukma-uc.a.run.app/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Has anyone else experienced something similar or has an idea what could be causing this?
many thanks
Expected Behavior
the API call should just work without any CORS error in the UI and in the app
Steps to Reproduce
- Go to my project API section and test the API called "Send full prompt SCHEMA". After few seconds the error will appear
- You can also test it from the project to see the CORS error but you need credentials. contact me and I will give you valid creds.
Reproducible from Blank
- The steps to reproduce above start from a blank project.
Bug Report Code (Required)
IT4klc/l34pIschE1qrtbe0xq2UXNV97TL07ttYbZxUjIuPtBJh/e8jRUEhBXdfgT3lhHFWLkmYE+ajGjs7LK/UEPReCGIB9ys9qTzzwLHq8RcmnO6u0VGpARNNTf0Cd07uJpQolJvZpc15m6lOqeeevaAvUN5+/Zwh9f6PHaOI=
Visual documentation
Environment
- FlutterFlow version: 6.3.33
- Platform: Windows
- Browser name and version: Chrome 140.0.7339.208
- Operating system and version affected: Windows 11Additional Information
my app is a story teller using chatgpt api calls. if those calls do not work , the whole app is broken.
I just did a test of disabling the two proxy options from the API call in the call definition in FF.
Surprisingly the call works but took several minutes (instead of seconds) to comlpete. But it didnt throw any exception or error.
I am completely puzzled now, any idea? :/