Internal error. Could not connect to Roboflow API

Error occured in jetson curl, in China.

nvidia@nvidia-desktop:~/test$ base64 112.jpg | curl -d @- “localhost:9001/ccc-fsh9w/1?api_key=rightKey”
{“message”:“Internal error. Could not connect to Roboflow API.”}
nvidia@nvidia-desktop:~/test$
nvidia@nvidia-desktop:~/test$ base64 112.jpg | curl -d @- “localhost:9001/ccc-fsh9w99/1?api_key=wrongkey”
{“message”:“Unauthorized access to roboflow API - check API key and make sure the key is valid for workspace you use. Visit Authentication | Roboflow Docs to learn how to retrieve one.”}
nvidia@nvidia-desktop:~/test$ nvidia@nvidia-desktop:~/test$ base64 112.jpg | curl -d @- “localhost:9001/ccc-fsh9w99/1?api_key=rightkey”
{“message”:“Requested Roboflow resource not found. Make sure that workspace, project or model you referred in request exists.”}nvidia@nvidia-desktop:~/test$
nvidia@nvidia-desktop:~/test$
nvidia@nvidia-desktop:~/test$

roboflow dock error message:




Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 715, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 404, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
  File "/usr/local/lib/python3.9/dist-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/usr/local/lib/python3.9/dist-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 799, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.9/dist-packages/urllib3/util/retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 715, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 404, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.9/dist-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
  File "/usr/local/lib/python3.9/dist-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/usr/local/lib/python3.9/dist-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/inference/core/roboflow_api.py", line 78, in wrapper
    return function(*args, **kwargs)
  File "/app/inference/core/roboflow_api.py", line 353, in get_from_url
    return _get_from_url(url=url, json_response=json_response)
  File "/app/inference/core/roboflow_api.py", line 357, in _get_from_url
    response = requests.get(wrap_url(url))
  File "/usr/local/lib/python3.9/dist-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 501, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/app/inference/core/interfaces/http/http_api.py", line 163, in wrapped_route
    return await route(*args, **kwargs)
  File "/app/inference/core/interfaces/http/http_api.py", line 1408, in legacy_infer_from_request
    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 55, 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 60, in add_model
    model = self.model_registry.get_model(resolved_identifier, api_key)(
  File "/app/inference/core/models/roboflow.py", line 607, in __init__
    self.initialize_model()
  File "/app/inference/core/models/roboflow.py", line 692, in initialize_model
    self.get_model_artifacts()
  File "/app/inference/core/models/roboflow.py", line 221, in get_model_artifacts
    self.cache_model_artefacts()
  File "/app/inference/core/models/roboflow.py", line 231, in cache_model_artefacts
    self.download_model_artifacts_from_roboflow_api()
  File "/app/inference/core/models/roboflow.py", line 287, in download_model_artifacts_from_roboflow_api
    environment = get_from_url(api_data["environment"])
  File "/app/inference/core/roboflow_api.py", line 80, in wrapper
    raise RoboflowAPIConnectionError(
inference.core.exceptions.RoboflowAPIConnectionError: Could not connect to Roboflow API.
INFO:     127.0.0.1:34842 - "POST /ccc-fsh9w/1?api_key=scLlo0PWQkW66gd1Eccn HTTP/1.1" 503 Service Unavailable

  • Project Type:
    Object detection
  • Operating System & Browser:
    jetson
  • Project Universe Link or Workspace/Project ID:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.