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

Incorrect payload validation when sending data to Astarte #176

Closed
Annopaolo opened this issue Feb 27, 2023 · 1 comment · Fixed by #177
Closed

Incorrect payload validation when sending data to Astarte #176

Annopaolo opened this issue Feb 27, 2023 · 1 comment · Fixed by #177
Labels
bug Something isn't working user experience This issue is about user experience

Comments

@Annopaolo
Copy link
Collaborator

Annopaolo commented Feb 27, 2023

When a value is sent on an integer mapping with the appengine devices send-data command, astartectl incorrectly parses it as int64, resulting in the following error:

> astartectl appengine devices send-data $DEVICE_ID $SERVER_OWNED_INTERFACE /an/integer/path 10
Value int64 for mapping does not match type restrictions for integer

The --payload-type flag does not fix the issue.
Astarte integers are int32, while longintegers are int64.

@Annopaolo Annopaolo added bug Something isn't working user experience This issue is about user experience labels Feb 27, 2023
@Annopaolo Annopaolo linked a pull request Feb 27, 2023 that will close this issue
@Annopaolo
Copy link
Collaborator Author

Closed by #177.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user experience This issue is about user experience
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant