Skip to content
Back

Appwrite Sites - Bug in Logs

  • 0
  • Web
  • Cloud
Rostlino
27 Jul, 2025, 09:08

There is an issue with the Appwrite Sites Logs, JSON.stringify cannot be used on circular references, circular reference is for example this:

TypeScript
var a = {};
a.b = a;
TypeScript
Converting circular structure to JSON
    --> starting at object with constructor 'Socket'
    |     property 'parser' -> object with constructor 'HTTPParser'
    --- property 'socket' closes the circle

We are recommending to implement https://github.com/sindresorhus/safe-stringify for the Logger in the Appwrite Sites Logs

TL;DR
Title: Issue with Appwrite Sites Logs due to Circular References Developers encountered a problem in the Appwrite Sites Logs related to circular references, which causes JSON.stringify to fail. They suggest implementing a safe alternative like https://github.com/sindresorhus/safe-stringify for the Logger to avoid this issue.
D5
27 Jul, 2025, 09:45

Create a GitHub issue for this instead šŸ™

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