
Please anyone help i am getting TLS Error (Got TLS error trying to find package abc at https://pub.dev)
Its self-hosted on corporate environment where i use corporate proxy, and in function i am also adding proxy env variables too.
Python functions do work but this pub.dev dependencies gives me TLS error

Does the instance have an internet connection?

Yes i have provided environment variables of corporate proxy in docker and in functions environment variables too. Should i give u screenshots?

For now not needed. You ran
docker compose up -d
after updating the variables, right?

Yes

Btw in which containers should i exactly add proxy variables?

I hv set proxy on machine too and internet is working so no issues on host machine

Is your proxy doing some kind of MITM?

What does it mean? I hv no idea about MITM

MITM is Man-in-the-Middle. It's when something between you and the server (in this case, the proxy server) is looking at your SSL traffic. To do this, it needs the SSL session between you and itself to use it's own certificate, instead of a valid certificate your computer would recognise.

Does your org give you an SSL certificate you need to install on your devices to use them on the network?

I hv added certificates they gave me certificate nd I added it in the appwrite_certificates volume doesn't affected

The appwrite_certificates
volume just holds certificates Appwrite serves, not certificates Appwrite will recognise.

So where should i add that?

I have no idea

Outside docker i already added that certificate and i can browse pub.dev

You'll need to have the runtime container trust the cert, somehow

I m stuck like more than 1 month no one is giving any solution i hv tried almost everything i can

I can't find how does appwrite build the runtime container such that i can add the certificate in the beginning everytime

On build, Appwrite runs whatever you set in the commands
key for that function in your appwrite.json

Any idea how can I give the certificate in appwrite.json

You could either put it inside your Function, or you could have it available at a HTTP endpoint and have the init script pull it from there to install

Inside a function how is it possible, u mean i add that inside functions directory nd make a cmnd to copy that .cer file to the linux certification paths?

You'll probably need to convert it to a .crt
, and then you should be able to put it into /usr/local/share/ca-certificates/
, set permissions 644 and run update-ca-certificates.

Can you also try using the --root-certs-file
flag like so - dart --root-certs-file=[CA.crt] pub ...
?
Recommended threads
- Appwrite Email Verification Query!!
Hi team I've created an Appwrite cloud function to send an email verification to a user. My understanding is that server-side code should use the Users API, bu...
- Hello all, does anyone know if it is po...
I'm looking for information on how to migrate to here from Mocha, while retaining my ties with stripe and react. Any Ideas ?
- Problem marking Apple Push-Notificaton a...
I was able to set up Push-Notifications via Appwrite function for my iOS App. I now wanted to increase the Badge count everytime the user gets a notifcation. Us...
