Back

Operation not permitted

  • 1
  • Flutter
  • Storage
Samuel Kings
2 Nov, 2023, 19:59

I am using dart_appwrite in my Flutter app. I have a function that uploads an image to my storage. It works fine on other targeted platforms except my Mac OS. This is the error I get: AppwriteException: ClientException with SocketException: Connection failed (OS Error: Operation not permitted, errno = 1), address = cloud.appwrite.io, port = 443, uri=https://cloud.appwrite.io/v1/storage/buckets/65399950e69c69a3d059/files (0)

Please I need help on knowing what the problem is and how to solve it. Thanks

TL;DR
I am using dart_appwrite in my Flutter app and encountering an error on my Mac OS that says "Operation not permitted." The error occurs when trying to upload an image to my storage. I need help understanding the problem and finding a solution. Thank you. Solution: It appears that there may be a plist or similar file that needs to be updated to grant the app network access. Check if there are any network permissions or settings that need to be adjusted on your Mac OS. Additionally, ensure that you are not putting the API key directly into the app for security reasons.
Drake
2 Nov, 2023, 20:14

i hope you're not putting the api key into that app 👀

Maybe there's a plist or something that needs to be updated to grant the app network access

Samuel Kings
2 Nov, 2023, 20:15

I am. Tbh, I really don't care. It's just a small app. I'm not worried about all that

Samuel Kings
2 Nov, 2023, 20:16

About the info.plist... I don't know if there is

Samuel Kings
2 Nov, 2023, 20:55

This helped. Thank you. Wouldn't have figured it out that quickly. Turns out not really an Appwrite problem.

Samuel Kings
2 Nov, 2023, 20:55
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more