mantiumai / chirps

Discover sensitive/confidential information stored in a vector database
GNU General Public License v3.0
57 stars 7 forks source link

Ping operation for API endpoints raises a 500 #202

Closed zimventures closed 10 months ago

zimventures commented 10 months ago

"ping" operation for API endpoints raises a 500 -> because it isn't implemented 😆

"GET /worker/stats HTTP/1.1" 200 576
Internal Server Error: /asset/ping/2/
Traceback (most recent call last):
  File "/home/vscode/.local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/.local/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/.local/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapper_view
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/chirps/asset/views.py", line 118, in ping
    result: PingResult = asset.test_connection()
                         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/chirps/asset/providers/api_endpoint.py", line 79, in test_connection
    raise NotImplementedError('The test_connection method is not implemented for this asset.')
NotImplementedError: The test_connection method is not implemented for this asset.
alex-nork commented 10 months ago

closed by #203