Skip to content

ReviewRequest gives Internal Server Error #2

Description

When I run the code in the file examples/add_review.py
I get the error

requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://annotation-integration.app.kognic.com/v1/annotations/7193bae3-d649-40e5-a4ce-2d3a8cdf29b1/review

The updated code I have is

def run(client: KognicIOClient, open_label_uuid: str, error_type_id: str, frame_id: str) -> ReviewResponse:
    review = ReviewRequest(
        feedback_items=[
            AddFeedbackItem(
                sensor_id="camera.front.left",
                frame_id=frame_id,  # in our OpenLabel file this is frame.frame_properties.external_id
                # object_id="<the id of the object>",
                pin=AddFeedbackItemPin(x=0.0, y=0.0, z=0.0),
                description="I post this via the Python client",
                suggested_property=AddFeedbackItemSuggestedProperty(
                    property_name="propertyName", suggested_property_value="suggestedPropertyValue"
                ),
                error_type_id=error_type_id,
                metadata={"key": "value"},
            )
        ],
        workflow=ReviewWorkflowEnum.CORRECT,
        accepted=False,
    )

    return client.review.create_review(open_label_uuid=open_label_uuid, body=review)

I do have authorized client as I am using the same to create batches and upload tasks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions