Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
As a user I do not want the file ingest to fail just because RB failed to enhance the metadata
The actual error is this:
2024-10-18 11:20:35,514 ERROR monitor: Failed 'redbox_app.worker.ingest' (Bookings_v4KpDVw.xlsx) - Some error happened in metadata extraction. Error code: 400 - {'error': {'message': "Invalid 'messages[1].content': string too long. Expected a string with maximum length 1048576, but got a string with length 1239399 instead.", 'type': 'invalid_request_error', 'param': 'messages[1].content', 'code': 'string_above_max_length'}} : Traceback (most recent call last):
So although the proposed fix doesnt address the underlying issue it will at least allow users to use their data until we find a proper solution
Changes proposed in this pull request
Guidance to review
Relevant links
Things to check