Skip to content

Upgrade to jpype1 lib causing crashing issue with SUTime #42

@speechwrecko

Description

@speechwrecko

During a recent deploy the jpype1 lib was automatically updated and our systems integrated with SUTime started to crash with the following exception:

TypeError json in loads
error
the JSON object must be str, bytes or bytearray, not 'java.lang.String'.

The issue occurs in line 159 of the sutime.py file return json.loads(self._sutime.annotate(input_str, reference_date))

            call.
    """
    if not jpype.isThreadAttachedToJVM():
        jpype.attachThreadToJVM()
    if reference_date:
        return json.loads(self._sutime.annotate(input_str, reference_date))
    return json.loads(self._sutime.annotate(input_str))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions