Request on Quick start project is not working.

Open
#404 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start with roboflow/models/object_detection.py around line 412 and run the Quick start project to reproduce the missing predictions response. Inspect the returned error and the request path involved in the node backend. Done means the cause is identified and the Quick start produces or clearly reports the expected object-detection result.

Written by the indexing model from the issue text.

Description

I got an error on this line:

https://github.com/roboflow/roboflow-python/blob/main/roboflow/models/object_detection.py#L412

There was no 'predictions' on the dictionary.

So I changed the code to inpect the response and got:

Exception in thread Thread-5 (view):
Traceback (most recent call last):
  File "/home/renzo/.pyenv/versions/3.12.5/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
    self.run()
  File "/home/renzo/PycharmProjects/quickstart-python/roboflow/lib/python3.12/site-packages/ipykernel/ipkernel.py", line 766, in run_closure
    _threading_Thread_run(self)
  File "/home/renzo/.pyenv/versions/3.12.5/lib/python3.12/threading.py", line 1012, in run
    self._target(*self._args, **self._kwargs)
  File "/home/renzo/PycharmProjects/quickstart-python/roboflow/lib/python3.12/site-packages/roboflow/models/object_detection.py", line 408, in view
    raise Exception(str(json))
Exception: {'error': "Cannot read properties of undefined (reading 'backend')"}

So it seems something happened on node backend

Dominant language
Python
Stars
642
Forks
146
Avg merge
1d 10h
Merged PRs (30d)
13

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from roboflow/roboflow-python

All issues in roboflow/roboflow-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.