-
Notifications
You must be signed in to change notification settings - Fork 7
CoreApi.java : DataSiftClient.usage().sync() : com.datasift.client.exceptions.JsonParsingException #48
Comments
Confirmed. |
Just for the record, it seems that all Datasift REST API endpoint don't use same date format. For instance stream/compile endpoint :
For usage endpoint :
|
Unfortunately not. It's an issue I'm currently trying to get sorted internally which is why I haven't pushed a fix yet. I've been considering removing the Date objects and leaving the raw strings returned until the issue has been addressed with the API. |
If it is in your hands, maybe you can choose to use ISO 8601 format aka "2014-03-18T21:29:15Z". It's easier to read for human and to parse in many language. |
Yup, been trying to get ISO8601, if not it'll be a timestamp in seconds. |
Hi! I've tested that in latest datasift-java beta3.1 release, "start" / "end" dates are simple Java String. Cheers, |
Leaving it open because it's not been dropped as an issue but rolling out a solution is not a simple matter of replacing all existing instances with ISO8601. Customers depend on the current format, it is yet to be decided what the deprecation path will be. |
Update: all dates returned in the API will be timestamps going forward. Currently unable to say when but the lib will be updated as and when this happens. |
Hi,
I just started using this client library and ran into a problem. After changing line 21 (i.e. DataSiftConfig().auth) to my API information, I see the following exception thrown by line 49 (i.e. Usage usage = datasift.usage().sync();). Does anyone else see the following? Could someone look into this?
Thanks.
Albert
The text was updated successfully, but these errors were encountered: