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

Error processing responses that do not include 'FieldName'. #119

Closed
JaffeMarques opened this issue Aug 14, 2024 · 2 comments
Closed

Error processing responses that do not include 'FieldName'. #119

JaffeMarques opened this issue Aug 14, 2024 · 2 comments

Comments

@JaffeMarques
Copy link

JaffeMarques commented Aug 14, 2024

Occasionally, the response body is missing the expected 'FieldName' in the file 'webclient/gen/api_client.py' at line 123. This issue occurs right at the beginning when the request is made, before any attempt is made to read the response body. The code likely requires a try-catch statement to handle the missing field gracefully. It's also worth considering whether 'FieldName' should always be present in the response.

I tested adding a try-catch block around the code, and the error stopped occurring. I also added a print statement to log the absence of 'FieldName' when it is missing.

image

Reponse body:
image

@onlyrchxx
Copy link
Contributor

onlyrchxx commented Aug 20, 2024

Hi @JaffeMarques. Unfortunately, I wasn't able to reproduce described behavior on DocumentReader version 7.4. Could you please provide more information, like:

  • Document type (passport, ID card, etc.) and scenario (Ocr, Full_process, etc.)
  • Your library version and server (SDK) version if you are using non-public API
  • Error persistency (Is it persistent error or it can appear at times)?
  • Parameters for ProcessParams. It would be cool if you can provide a piece of code.
  • Have you ever get such error with any other documents?

@onlyrchxx
Copy link
Contributor

Hi @JaffeMarques, we released new version of our library. Could you please recheck your issue with new version v7.4.45?

https://github.com/regulaforensics/DocumentReader-web-python-client/tree/v7.4.45

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

No branches or pull requests

3 participants