-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
When I use the RUST client generator for this OpenRPC document:
{"openrpc":"1.2.1","info":{"version":"0.0.0","title":"afx.core"},"methods":[{"name":"rpc.discover","description":"Returns an OpenRPC schema as a description of this service","params":[],"result":{"name":"OpenRPC Schema","schema":{"$ref":"https://raw.githubusercontent.com/open-rpc/meta-schema/master/schema.json"}}}]}
I get this error:
Invalid OpenRPC document. Please revise the validation errors below:
RangeError: Maximum call stack size exceeded
[...]
Is that normal?
I just wanted to add a rpc.discover method according to https://spec.open-rpc.org/ (?)
This is my command:
npm exec --prefix "${npm_BINARY_DIR}" -- open-rpc-generator generate -t client -l rust -n afx-core -d "${afx-core_BINARY_DIR}/afx-core-oprenrpc.json" -o "${afx-core_BINARY_DIR}/generated"
Also tried with node process itself and current LTS ( https://nodejs.org/dist/v18.14.2/node-v18.14.2-x64.msi doesn't work either ) 64 bit on Windows and it still happens.
If I use node.exe with --stack-size=10000, that makes it run without the error, but no files generated and no stdout either (as it normally would), it just quits
It also happens with typsecript (client and server).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels