I am in the process of evaluating fly.io for a project that I am working on. So far I find it great but I was hit with an issue over the last few days that stumped me. I am making requests to OpenAPI to generate images in my fly.io hosted application that are then supposed to be saved on the application.
This works fine working locally but fails when deployed: I just realised now that OpenAI are blocking the request:
ERROR 409: Public access is not permitted on this storage.
I get the above error when I do a wget from my container.
This occurs no matter what location my elixir app is deployed to…. again no use downloading the images locally
I understand this is an issue with OpenAI but I am wondering if you guys have seen this issue before and if there is a a solution I can come up with.
That error doesn’t look like what I’d expect if it were blocked. Usually people send a 403 for that. It’s probably best to ask OpenAI, if you can.
Turns out I just needed to set the initial request to “response_format”: “b64_json” and I was able to get the actual image back in the response and save it directly. Much nicer than what I was initially trying to do but not immediatly obvious from the documentation.