Back

Native logs detected in Appwrite Cloud

  • 0
  • Functions
  • Cloud
Zionnite
30 Jan, 2025, 22:29

i'm always getting this error

TypeScript
(node:12) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)```
TL;DR
Developers are seeing an error related to using console.log() in functions. The recommended solution is to replace console.log() with context.log() or context.error() to avoid native logs being detected.
Zionnite
30 Jan, 2025, 22:30

here is the code

Zionnite
30 Jan, 2025, 22:31

no where in my code i use context.log

D5
30 Jan, 2025, 22:51

You can't use console.log() in functilns

D5
30 Jan, 2025, 22:52

Log doesn't exist. You need to use context log

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