HumanSignal / HumanSignal/label-studio

Assertion error on ML Backend Setup: Job 1692083863 returns exception

Open
#4,632 0 comments 0 reactions 1 assignee Claimed by @makseq View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

I get the following error when setting up the machine learning backend on my project: (after I hit Save)

```
[2023-08-15 10:17:45,525] [INFO] [werkzeug::_log::225] 192.168.8.181 - - [15/Aug/2023 10:17:45] "GET /health HTTP/1.1" 200 -
[2023-08-15 10:18:09,414] [ERROR] [label_studio_ml.model::get_result_from_last_job::131] 1692083863 job returns exception:
Traceback (most recent call last):
File "C:\Users\Nadim\.conda\envs\label-studio-cp39\lib\site-packages\label_studio_ml\model.py", line 129, in get_result_from_last_job
result = self.get_result_from_job_id(job_id)
File "C:\Users\Nadim\.conda\envs\label-studio-cp39\lib\site-packages\label_studio_ml\model.py", line 111, in get_result_from_job_id
assert isinstance(result, dict)
AssertionError
```

Once this error happens, the ML backend disconnects from my project. If I then go into the shell where the backend is running and hit Enter, the backend continues running but doesn't reconnect. Then if I go into the data view of my project, the backend predicts everything just fine. So this bug doesn't kill anything, it's just weird and annoying because I manually have to go into the shell and hit Enter to fix it. I also have no idea how it just reconnected itself.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.