You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iot-sth | time=2018-05-10T09:43:13.301Z | lvl=WARN | corr=0388645f-3cb3-4982-af34-2f9a7a259ba2 | trans=0388645f-3cb3-4982-af34-2f9a7a259ba2 | op=OPER_STH_GET | from=n/a | srv=smartcity | subsrv=/ | comp=STH | msg=Error when getting the raw data collection for retrieval (the collection may not exist)
It seems that in your case collection exits but data are right
I am getting the same result as mentioned by you but as per my understanding 404 should be returned if an entity doesn't exists. Could you please confirm whether my understanding is correct or not?
I'm also unable to reproduce the bug. When I ask for nonexisting type I get a 200 OK with empty results, not a 500 (is 200 a good idea in this case? we are discussing it in a separate issue: #511)
Thus @gobaldia maybe you have some other kind of problem. Maybe the connection from STH to MongoDB is failing. Did you get in the log a message as the one @AlvaroVega cites?
When asking STH API for return historic information for non existing entity type, it returns
The request I'm making is as follows (where
someEntityType
is a not existing entity type):I think it should return
404
.The text was updated successfully, but these errors were encountered: