Skip to content

thingverse-init sometimes tries (and fails) to serialize datetimes to JSON #4

@skrytebane

Description

@skrytebane

Sometimes, when it doesn't fail due to bug https://github.com/NIVANorge/nivacloud/issues/258, thingverse-init fails with a JSON serialization error. This seems to also be somehow nondeterministic even though you would expect it to either always fail or always succeed.

The actual code that fails is in metaflow.py (in pyniva) at the start of the update_thing function. Sometimes thing that is passed in here has start_time and end_time fields with str values, and sometimes they are datetime values.

I've only seen this when debugging, and possibly suspending execution for a while, but I think it's very strange that this should be caused by a timeout somewhere. Some kind of Heisenbug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions