Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Data with ms time ignored without error #70

Closed
farshidtz opened this issue Jun 29, 2020 · 0 comments
Closed

Data with ms time ignored without error #70

farshidtz opened this issue Jun 29, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@farshidtz
Copy link
Member

farshidtz commented Jun 29, 2020

Submitting senml data with milliseconds timestamp (instead of seconds) is accepted by the server (202 status code), but nothing is stored.

 curl -i --location --request POST 'http://localhost:8085/data/' \
--header 'Content-Type: application/json' \
--data-raw '[{"n":"test","t":1593441174505,"v":2}]'
HTTP/1.1 202 Accepted
Content-Type: application/json;version=master

It should be rejected with 400 error.

Moreover, content-type is set to application/json for empty body.

@farshidtz farshidtz added the bug Something isn't working label Jun 29, 2020
@dschowta dschowta self-assigned this Jul 2, 2020
dschowta added a commit that referenced this issue Jul 7, 2020
Grpcsync :
closes issue #72 #70 #62 (partially)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants