Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"RangeError: Maximum call stack size exceeded" when adding rpc.discover method #707

Open
dtugend opened this issue Feb 26, 2023 · 1 comment

Comments

@dtugend
Copy link

dtugend commented Feb 26, 2023

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).

@stephenctw
Copy link

Hit the same issue here. No one's trying to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants