print error message on gateway for bad request lora errors #3154
+17
−3
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.
What does this pull request do? Explain your changes. (required)
This change prints bad request errors from the t2i and i2i pipelines, specifically when LoRa parameters are incorrect or fail to load:
2024/08/26 11:37:46 ERROR text-to-image container returned 400 err="{\"detail\":{\"msg\":\"Error loading LoRas: Error loading LoRas: Unable to load LoRas for adapter 'nerijs/pihxel-art-xl' (RepositoryNotFoundError)\"}}"
2024/08/26 11:35:52 ERROR image-to-image container returned 400 err="{\"detail\":{\"msg\":\"Error loading LoRas: Error loading LoRas: Unable to load LoRas for adapter 'nerijs/pihxel-art-xl' (RepositoryNotFoundError)\"}}"
2024/08/26 11:43:34 ERROR text-to-image container returned 400 err="{\"detail\":{\"msg\":\"Error loading LoRas: Error loading LoRas: Unable to parse '{ \\\"nerijs/pihxel-art-xl\\\" : f }' as JSON.\"}}"
This PR is dependent on livepeer/ai-worker#119
Specific updates (required)
ai_mediaserver.go
to log the errorai_process.go
prevent retries when LoRa error message returnedHow did you test each of these updates (required)
Does this pull request close any open issues?
AI-501: add-lora-support-to-t2i-and-image-to-image-pipelines
Checklist:
make
runs successfully./test.sh
pass