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

The code handles only 201 and 500 responses #4

Open
Lestat06 opened this issue Sep 7, 2023 · 0 comments
Open

The code handles only 201 and 500 responses #4

Lestat06 opened this issue Sep 7, 2023 · 0 comments

Comments

@Lestat06
Copy link

Lestat06 commented Sep 7, 2023

After a request is sent for CDR from the Lambda function, the code will only trigger if the response is 201 or 500.
If the response is a 206 it just drops the message. This causes issues with partially processed archives.
I haven't been able to replicate a 400, but since I got a 404 in the CloudWatch logs, I assume it handles 400 codes also.

One thing to keep in mind is that unsupported files also return a 206 but since we are sending a request with NoAnalysisReport, the response body wont have anyhting to download.

Actual behaviour
206 responses are dropped from the lambda function and nothing is logged

Expected behaviour
Response with 206 and a response body to download should be handled from function. Archives partial processed should be present in processed bucket

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

1 participant