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

[BUG-python/deployment] Error validating the data on record update with dataset.records.log() #5623

Open
castares opened this issue Oct 23, 2024 · 0 comments
Assignees

Comments

@castares
Copy link

castares commented Oct 23, 2024

Describe the bug

When I try to update a record with a suggestion, I receive an error. I have reproduced this error running the Text Classification tutorial notebook. The dataset.records.log(records=updated_data) from the section "Add initial model suggestions", fails. My server is deployed locally with the docker-compose.yml from the documentation.

Stacktrace and Code to create the bug

On client side, with the server deployed using docker:

argilla._exceptions._api.InternalServerError: Argilla SDK error: InternalServerError: Internal server error. Details: {"detail":{"code":"argilla.api.errors::GenericServerError","params":{"type":"builtins.AttributeError","message":"'NoneType' object has no attribute 'items'"}}}

Server side error:

"/opt/venv/lib/python3.10/site-
packages/argilla_server/api/sch
emas/v1/records.py", line 103,
in validate_chat_fields
for key, value in
fields.items():
AttributeError: 'NoneType'
object has no attribute 'items'

Expected behavior

Environment:

  • Argilla Version [e.g. 1.0.0]: 2.3.0
  • ElasticSearch Version [e.g. 7.10.2]:
  • Docker Image (optional) [e.g. argilla:v1.0.0]: v2.3.0

Additional context

@frascuchon frascuchon self-assigned this Nov 12, 2024
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