Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiException: 200 Status Code #73

Open
ghunkins opened this issue Sep 1, 2024 · 1 comment
Open

ApiException: 200 Status Code #73

ghunkins opened this issue Sep 1, 2024 · 1 comment

Comments

@ghunkins
Copy link

ghunkins commented Sep 1, 2024

I am receiving a lot of ApiException errors even when a 200 response is being returned.

Below is the stack trace:

Traceback (most recent call last):
  File "/app/main.py", line 213, in check_fjs_allowed
    fjs_resp = request.app.fjs.get_event(fjs_token)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api/fingerprint_api.py", line 177, in get_event
    (data) = self.get_event_with_http_info(request_id, **kwargs)  # noqa: E501
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api/fingerprint_api.py", line 260, in get_event_with_http_info
    raise e
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api/fingerprint_api.py", line 238, in get_event_with_http_info
    return self.api_client.call_api(
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 300, in call_api
    return self.__call_api(resource_path, method,
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 176, in __call_api
    raise error
fingerprint_pro_server_api_sdk.rest.ApiException: (200)

Here is a related stack trace that is likely relevant:

 Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 170, in __call_api
    return_data = self.deserialize(response_data, response_type)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 254, in deserialize
    return ApiClientDeserializer.deserialize(data, response_type)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 520, in deserialize
    return ApiClientDeserializer.__deserialize_model(data, klass)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 602, in __deserialize_model
    kwargs[attr] = ApiClientDeserializer.deserialize(value, attr_type)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 520, in deserialize
    return ApiClientDeserializer.__deserialize_model(data, klass)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 602, in __deserialize_model
    kwargs[attr] = ApiClientDeserializer.deserialize(value, attr_type)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 520, in deserialize
    return ApiClientDeserializer.__deserialize_model(data, klass)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 602, in __deserialize_model
    kwargs[attr] = ApiClientDeserializer.deserialize(value, attr_type)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 520, in deserialize
    return ApiClientDeserializer.__deserialize_model(data, klass)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/api_client.py", line 604, in __deserialize_model
    instance = klass(**kwargs)
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/models/velocity_result.py", line 58, in __init__
    self.distinct_ip = distinct_ip
  File "/usr/local/lib/python3.9/site-packages/fingerprint_pro_server_api_sdk/models/velocity_result.py", line 80, in distinct_ip
    raise ValueError("Invalid value for `distinct_ip`, must not be `None`")  # noqa: E501
ValueError: Invalid value for `distinct_ip`, must not be `None` 

It appears that the distinct_ip is required by this library, but the API returns a 200 response code for payloads that do not include this value.

@ilfa
Copy link
Member

ilfa commented Nov 21, 2024

Hi @ghunkins!

Sorry, I completely missed your issue. Do you still reproduce this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants