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

FileFormRecSubmissionPDF - An error occurred - 'Response' object has no attribute 'code' #125

Closed
lmwilki opened this issue Jul 11, 2023 · 1 comment

Comments

@lmwilki
Copy link
Contributor

lmwilki commented Jul 11, 2023

The FileFormRecSubmissionPDF fails to complete and accesses a non existant attribute from the HTTPS response object

To Reproduce
Steps to reproduce the behavior:

  1. Clone the Beta branch
  2. Fill in local.env
  3. make deploy
  4. Upload files to upload container
  5. Open CosmosDB data explorer
  6. Wait until status comes through with error on FileFormRecSubmissionPDF stage

Expected behavior
The FileFormRecSubmissionPDF should complete successfully or reque after calling the Form Recogniser API

Screenshots
image

Beta version details

  • GitHub branch: 0.2-Beta
  • Latest commit: commit e477742 (HEAD -> 0.2-Beta, origin/0.2-Beta)

Additional context
Suspected offending line of code:

statusLog.upsert_document(blob_path, f'{function_name} - Error on PDF submission to FR - {response.code} {response.message}', StatusClassification.ERROR, State.ERROR)

statusLog.upsert_document(blob_path, f'{function_name} - Error on PDF submission to FR - {response.code} {response.message}', StatusClassification.ERROR, State.ERROR)
@dayland
Copy link
Contributor

dayland commented Jul 17, 2023

@dayland dayland closed this as completed Jul 17, 2023
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