Back

[SOLVED] Cloud function logs warnings

  • 0
  • Functions
Chandan Gowda
27 Nov, 2023, 14:28

warnings.warn( /usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/urllib3/connectionpool.py:1099: InsecureRequestWarning: Unverified HTTPS request is being made to host 'cloud.appwrite.io'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

TL;DR
The user was experiencing warnings in their cloud function logs. The solution was to remove the insecure request warning by calling `client.set_self_signed()`.
Drake
27 Nov, 2023, 14:48

Are you calling client.set_self_signed()?

Chandan Gowda
27 Nov, 2023, 14:53

Yes

Chandan Gowda
27 Nov, 2023, 14:53

client .set_endpoint(os.environ['APPWRITE_FUNCTION_ENDPOINT']) .set_project(os.environ['APPWRITE_FUNCTION_PROJECT_ID']) .set_key(os.environ['APPWRITE_FUNCTION_API_KEY']) .set_self_signed(True)

Drake
27 Nov, 2023, 14:54

That's the problem. Remove it

Chandan Gowda
27 Nov, 2023, 15:06

Oh okayy. Thank you so much.

Drake
27 Nov, 2023, 16:19

[SOLVED] Cloud function logs warnings

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