This morning I noticed there was an error which called my onStopped listener and the method disconnected the client.
[INFO] None of the supplied hashes were valid
I’m using a StreamConsumer object to connect to the streaming Api of type HTTP_MULTI.
In my Java class I create hashes and update my object to subscribe and unsubscribe accordingly. All hashes are created using Datasift’s api calls.
However, all of the supplied hashes were valid.
My logs reported all hashes that were submitted to Datasift before and after the error and are listed below. I’ve checked them and all seem to be valid.
Error happened here. //08:48:53
What do you think has happened?
Having played around with implementing IMultiStreamConsumerEvents, I’ve noticed the following behaviour:
The consumer receives a failure with “None of the supplied hashes were valid” message in two following cases:
- If all of the hashes in the arraylist are not valid
- If you supply NULL as the only element in the list.
I really don’t know what happened because:
- I’ve checked the hashes submitted and no hash was invalid. Even if you submit an empty arraylist, there is no such error/message.
- Even if DS gave me a null response I would have logged the exception message.
Unfortunately we lost some data due to that. Any ideas what is the problem and how to fix it in case its on our side?