© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Json Schema encode: Maximum call stack size exceeded - Effect Community
EC
Effect Community
•
3y ago
•
11 replies
Kristian Notari
Json Schema encode: Maximum call stack size exceeded
While messing up with schema and json
, I wrote a test for a use case of mine and noticed that encoding using a
Schema<string, json>
Schema<string, json>
gives you maximum call stack size exceeded
(at least while testing with vitest
)
.
In the screen you can find a minimal repro
. Doing the same with the classic
JSON.stringify
JSON.stringify
throws correctly without the call stack size exceede error
, but with the message reporting the circular structure
.
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
JSON schema to schema
EC
Effect Community / help-forum
4mo ago
JSON Schema on Transformations
EC
Effect Community / help-forum
2y ago
Schema decode a literal to string then encode string to literal
EC
Effect Community / help-forum
11mo ago
Schema base64 string -> utf8 string -> json parse
EC
Effect Community / help-forum
2y ago