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

An error message for the Gradio library indicating that a validation error occurred while processing the event. Specifically, the error is caused by the missing "event_id" field #18

Open
pcxdi opened this issue Oct 18, 2023 · 1 comment

Comments

@pcxdi
Copy link

pcxdi commented Oct 18, 2023

Traceback (most recent call last):
File "D:\anaconda\envs\pytorch\rich-text-to-image-main\lib\site-packages\gradio\queueing.py", line 347, in process_events
client_awake = await self.gather_event_data(event)
File "D:\anaconda\envs\pytorch\rich-text-to-image-main\lib\site-packages\gradio\queueing.py", line 220, in gather_event_data
data, client_awake = await self.get_message(event, timeout=receive_timeout)
File "D:\anaconda\envs\pytorch\rich-text-to-image-main\lib\site-packages\gradio\queueing.py", line 456, in get_message
return PredictBody(**data), True
File "D:\anaconda\envs\pytorch\rich-text-to-image-main\lib\site-packages\pydantic\main.py", line 164, in init
pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for PredictBody
event_id
Field required [type=missing, input_value={'fn_index': 10, 'data': ...on_hash': '3yq8r3v8to9'}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing

@songweige
Copy link
Owner

Interesting. May I know what is your version of gradio?

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