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

Example endpoint does not handle argument types correctly #1

Open
NeoVance opened this issue Feb 26, 2019 · 1 comment
Open

Example endpoint does not handle argument types correctly #1

NeoVance opened this issue Feb 26, 2019 · 1 comment

Comments

@NeoVance
Copy link

Running endpoint example and api_user example, the addition example is not able to parse it's arguments correctly.

Enter a command (or type "help")
add 10,10
Error: CallError { reason: InvalidArgument, args: Some([String("Expected integer, got 10")]), kwargs: None }
@thebeekeeper
Copy link

I'm seeing this too, but noticed that passing in negative numbers works. For example, add -1,-1 in the api_user example works for me. Not sure where positive integers are getting set to UnsignedInteger.

Also unsure how to get an UnsignedInteger out of ArgList, although maybe that's a different issue.

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