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:
Error: ClientException: Failed to fetch, uri=https://warm-caverns-48629-92fab798385f.herokuapp.com/https://api.openai.com/v1/chat/completions
When checking the browser logs while testing the app, I also noticed 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