Timeout while retrieving frame

I frequently get this while testing out a workflow with my web camera. Is there a way to increase the timeout, or is this related to some other issue?

File “/app/inference/core/roboflow_api.py”, line 100, in wrapper
return function(*args, **kwargs)
File “/app/inference/core/roboflow_api.py”, line 256, in get_roboflow_model_data
api_data = _get_from_url(url=api_url)
File “/usr/local/lib/python3.9/site-packages/backoff/_sync.py”, line 105, in retry
ret = target(*args, **kwargs)
File “/app/inference/core/roboflow_api.py”, line 703, in _get_from_url
raise error
File “/app/inference/core/roboflow_api.py”, line 699, in _get_from_url
api_key_safe_raise_for_status(response=response)
File “/app/inference/core/utils/requests.py”, line 15, in api_key_safe_raise_for_status
response.raise_for_status()
File “/usr/local/lib/python3.9/site-packages/requests/models.py”, line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.roboflow.com/ort/rfid-demo-3/4?nocache=true&device=cb4e62f80a78&dynamic=true
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/app/inference/core/workflows/execution_engine/v1/executor/core.py”, line 130, in safe_execute_step
run_step(
File “/app/inference/core/workflows/execution_engine/v1/executor/core.py”, line 160, in run_step
return run_simd_step(
File “/app/inference/core/workflows/execution_engine/v1/executor/core.py”, line 184, in run_simd_step
return run_simd_step_in_batch_mode(
File “/app/inference/core/workflows/execution_engine/v1/executor/core.py”, line 224, in run_simd_step_in_batch_mode
outputs = step_instance.run(**step_input.parameters)
File “/app/inference/core/workflows/core_steps/models/roboflow/object_detection/v1.py”, line 190, in run
return self.run_locally(
File “/app/inference/core/workflows/core_steps/models/roboflow/object_detection/v1.py”, line 248, in run_locally
self._model_manager.add_model(
File “/app/inference/core/managers/decorators/fixed_size_cache.py”, line 61, in add_model
raise error
File “/app/inference/core/managers/decorators/fixed_size_cache.py”, line 55, in add_model
return super().add_model(model_id, api_key, model_id_alias=model_id_alias)
File “/app/inference/core/managers/decorators/base.py”, line 62, in add_model
self.model_manager.add_model(model_id, api_key, model_id_alias=model_id_alias)
File “/app/inference/core/managers/base.py”, line 61, in add_model
model = self.model_registry.get_model(resolved_identifier, api_key)(
File “/app/inference/core/registries/roboflow.py”, line 71, in get_model
model_type = get_model_type(model_id, api_key)
File “/app/inference/core/registries/roboflow.py”, line 126, in get_model_type
api_data = get_roboflow_model_data(
File “/app/inference/core/roboflow_api.py”, line 119, in wrapper
error_handler(error)
File “/app/inference/core/roboflow_api.py”, line 79, in
401: lambda e: raise_from_lambda(
File “/app/inference/core/roboflow_api.py”, line 75, in raise_from_lambda
raise exception_type(message) from inner_error
inference.core.exceptions.RoboflowAPINotAuthorizedError: Unauthorized access to roboflow API - check API key. Visit Authentication | Roboflow Docs to learn how to retrieve one.

Hi @LouNL ,

Thanks for posting! Can you share more details about how you process camera frames? Are you using inference pipeline?

Thanks,
Grzegorz

In this case it’s using the “test workflow” tool in the attached workflow with a webcam. I’m running the workflow locally on the inference server image.

Hi @LouNL ,

Looking at the error log again, can you confirm if your model ID is correct? The error suggests you are not authorized to use rfid-demo-3/4, was this model created within your workspace?

Thanks,
Grzegorz