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

Exception of type 'Geotab.Serialization.JsonSerializerException' was thrown. #14

Open
r-wells opened this issue Feb 7, 2023 · 1 comment

Comments

@r-wells
Copy link

r-wells commented Feb 7, 2023

I keep getting an exception when trying to query with the following parameters:

self.__client.call(
            "GetFeed",
            typeName="LogRecord",
            search={
                "deviceSearch": {
                    "id": device_id,
                },
                "fromDate": "2023-02-06 16:00:32 UTC",
                "toDate": "2023-02-06 16:10:32 UTC"
            },
            resultsLimit=10
        )

Here is the exception:

Exception of type 'Geotab.Serialization.JsonSerializerException' was thrown.

Using mygeotab version 0.8.8 and python version 3.9.13.

This was working like a day ago and isn't anymore. Any recent code changes to the API that could be causing this? Doing a Get to DeviceStatusInfo doesn't seem to be affected.

@aaront
Copy link
Contributor

aaront commented Feb 8, 2023

Hi @r-wells,

Not sure why this would have started raising this exception suddenly, but the date format should be in ISO 8601 format, akin to:

YYYY-MM-ddTHH:mm:ss[.mmm]Z

Could you try that change and see if that works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants