I’ve been having API key errors with my workflows all morning. is this a bug or is there an issue with the licensing server? It tends to work fine for an hour or two, then starts doing this.
I’m using the inference server for this.
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.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/app/inference/core/interfaces/stream/inference_pipeline.py”, line 910, in _execute_inference
predictions = self._on_video_frame(video_frames)
File “/app/inference/core/interfaces/stream/model_handlers/workflows.py”, line 54, in run_workflow
return execution_engine.run(
File “/app/inference/core/workflows/execution_engine/core.py”, line 73, in run
return self._engine.run(
File “/app/inference/core/workflows/execution_engine/v1/core.py”, line 107, in run
result = run_workflow(
File “/app/inference/usage_tracking/collector.py”, line 664, in sync_wrapper
res = func(*args, **kwargs)
File “/app/inference/core/workflows/execution_engine/profiling/core.py”, line 264, in wrapper
return func(*args, **kwargs)
File “/app/inference/core/workflows/execution_engine/v1/executor/core.py”, line 62, in run_workflow
execute_steps(
File “/app/inference/core/workflows/execution_engine/profiling/core.py”, line 264, in wrapper
return func(*args, **kwargs)
File “/app/inference/core/workflows/execution_engine/v1/executor/core.py”, line 108, in execute_steps
_ = run_steps_in_parallel(
File “/app/inference/core/workflows/execution_engine/v1/executor/utils.py”, line 14, in run_steps_in_parallel
return list(inner_executor.map(_run, steps))
File “/usr/local/lib/python3.9/concurrent/futures/_base.py”, line 609, in result_iterator
yield fs.pop().result()
File “/usr/local/lib/python3.9/concurrent/futures/_base.py”, line 446, in result
return self.__get_result()
File “/usr/local/lib/python3.9/concurrent/futures/_base.py”, line 391, in __get_result
raise self._exception
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/app/inference/core/workflows/execution_engine/v1/executor/utils.py”, line 37, in _run
return fun()
File “/app/inference/core/workflows/execution_engine/profiling/core.py”, line 264, in wrapper
return func(*args, **kwargs)
File “/app/inference/core/workflows/execution_engine/v1/executor/core.py”, line 144, in safe_execute_step
raise StepExecutionError(
inference.core.workflows.errors.StepExecutionError: Unauthorized access to roboflow API - check API key. Visit Authentication | Roboflow Docs to learn how to retrieve one.