You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classify Result: None
Tipo de Classify Result: <class 'NoneType'>
Traceback (most recent call last):
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\main.py", line 17, in
bot.run(job_title)
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\src\graph.py", line 206, in run
state = self.graph.invoke({"job_title": job_title})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel_init_.py", line 1617, in invoke
for chunk in self.stream(
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel_init_.py", line 1303, in stream panic_or_proceed(all_futures, loop.step)
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel_init.py", line 1733, in _panic_or_proceed
raise exc
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel\executor.py", line 59, in done
task.result()
File "C:\Python312\Lib\concurrent\futures_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\concurrent\futures_base.py", line 401, in __get_result
raise self.exception
File "C:\Python312\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mb3-vdonet\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel\retry.py", line 26, in run_with_retry
task.proc.invoke(task.input, task.config)
File "C:\Users\Mb3-vdonet\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langchain_core\runnables\base.py", line 2876, in invoke
input = context.run(step.invoke, input, config, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mb3-vdonet\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\utils.py", line 102, in invoke
ret = context.run(self.func, input, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mb3-vdonet\proyectos\upwork-auto-jobs-applier-using-AI\src\graph.py", line 76, in classify_scraped_jobs
matches = json.loads(classify_result, strict=False)["matches"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\json_init.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
The text was updated successfully, but these errors were encountered:
It looks like the issue is that the model is returning a None value instead of a valid JSON object, which is causing the graph to break. Could you please let me know which LLM model you're using?
I am using gemini-1.5-pro for the classification task, and the code works fine. Sometime the Groq llama3 models fail to provide a valid JSON output.
I have serveral issues when I use the app.
Classify Result: None
Tipo de Classify Result: <class 'NoneType'>
Traceback (most recent call last):
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\main.py", line 17, in
bot.run(job_title)
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\src\graph.py", line 206, in run
state = self.graph.invoke({"job_title": job_title})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel_init_.py", line 1617, in invoke
for chunk in self.stream(
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel_init_.py", line 1303, in stream
panic_or_proceed(all_futures, loop.step)
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel_init.py", line 1733, in _panic_or_proceed
raise exc
File "C:\Users\user\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel\executor.py", line 59, in done
task.result()
File "C:\Python312\Lib\concurrent\futures_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\concurrent\futures_base.py", line 401, in __get_result
raise self.exception
File "C:\Python312\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mb3-vdonet\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\pregel\retry.py", line 26, in run_with_retry
task.proc.invoke(task.input, task.config)
File "C:\Users\Mb3-vdonet\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langchain_core\runnables\base.py", line 2876, in invoke
input = context.run(step.invoke, input, config, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mb3-vdonet\proyectos\upwork-auto-jobs-applier-using-AI\venv\Lib\site-packages\langgraph\utils.py", line 102, in invoke
ret = context.run(self.func, input, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Mb3-vdonet\proyectos\upwork-auto-jobs-applier-using-AI\src\graph.py", line 76, in classify_scraped_jobs
matches = json.loads(classify_result, strict=False)["matches"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\json_init.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
The text was updated successfully, but these errors were encountered: