Skip to content

GamesClientStatusCodes.SNAPSHOT_CONTENTS_UNAVAILABLE status code returned when opening save backing #335

@JoeyRosicka

Description

@JoeyRosicka

A description of the problem, and the behavior you expected instead.
Many of our users encounter a GamesClientStatusCodes.SNAPSHOT_CONTENTS_UNAVAILABLE status code when attempting to open their SnapshotsClient save backing on app startup. The expected behavior is for these users to be able to successfully open their save data.

A list of steps and/or a small snippet of sample code that can be taken to reproduce the problem in another app.

_snapshotsClient.open(SNAPSHOT_NAME, allowCreation).addOnCompleteListener(new OnCompleteListener<SnapshotsClient.DataOrConflict<Snapshot>>() {
public void onComplete(@NonNull Task<SnapshotsClient.DataOrConflict<Snapshot>> task) {
	shouldCancelTimer = true;
	if (openExpired) {
		debugLog("Save backing opening complete, but the timer has expired. Discarding.");
		return;
	}
	Log.tagI(TAG, "Open returned with result %s", task.isSuccessful());
	String statusMessage;
	try {
		SnapshotsClient.DataOrConflict<Snapshot> result = task.getResult(ApiException.class);
		debugLog("Result retrieved");
		if (!result.isConflict()) {// if data was successfully loaded and is up-to-date.
			snapshot = result.getData();
			statusMessage = "ok";
			debugLog("No conflict. " + (suppressLocalConflict ? "Proceeding." : "Checking for local conflict."));

...

	} catch (ApiException ex) {
		String err = "Google Play reported: " + CommonStatusCodes.getStatusCodeString(ex.getStatusCode());
		switch (ex.getStatusCode()) {
			case GamesClientStatusCodes.SNAPSHOT_CONTENTS_UNAVAILABLE: 
				statusMessage = "snapshot contents unavailable";
				openFailed(callbacks, SaveBackingErrorCode.SERVICE_ERROR, err);

...

		}
	}
}

When this bug started happening, and the frequency it occurs.
The first case we saw was on July 10th, 2021 (a couple per day). We saw a surge of cases on July 23rd, 2021 (~200 per day), then a bigger surge on July 30th, 2021 (~1300 per day).

A description of any workarounds you have found.
None.

A log file with a stack trace of the problem. To learn how to use the Android logging system, see Reading and Writing Logs.
We are unable to reproduce this so are unable to provide logs.

The main thing we're looking for here is any details about the cause of a GamesClientStatusCodes.SNAPSHOT_CONTENTS_UNAVAILABLE status code and whether there's anything we can do on our end to try to resolve it. The timeframe of when this started appearing does not line up with any app updates or other changes on our end, so we're confused about what could have triggered the surge of these cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions