Repository navigation
fix(cloud): skip a trophy list or image the server refuses (v0.3.2) - #17
Merged
Merged
Conversation
The console stopped the whole sync at the first non-2xx answer, so one image the server refused (413 for 4K key art over the old 16 MiB limit) blocked every image after it, retried each minute forever. Now 400, 409, 413 and 415 skip that item and the sync goes on; network errors, 401, 429, 5xx and 507 still stop it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
A console with a large library stopped sending images after about a third of them. The server answered
413 too_largefor one image (PS5 4K key art,pic0.png, over the old 16 MiB limit), andCloudClient::Syncreturned at the first non-2xx answer. Every image after it never went up, and the console retried the same image every minute.Fix
400,409,413,415), counts it, logs it and goes on with the rest. Network errors,401,429,5xxand507still stop the sync, as before.SYNC.mddocuments the behaviour; changelog entry and release commit for v0.3.2.Tests
cloud_client_skips_sets_and_images_the_server_refuses: a refused set and three refused images (413, 415, 409) are skipped; the other set and image are sent.cloud_client_stops_when_the_server_cannot_take_more: 429, 500 and 507 still stop at the first image.make -C payload host-test: 107 tests, 0 failed. PS5 build links; clang-format clean.This release does not include the save backup work.