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

Possibly wrong number range in SystemDataUsageResponse.Volumes[].UsageData.Size #55

Closed
gesellix opened this issue Apr 10, 2022 · 2 comments

Comments

@gesellix
Copy link
Contributor

Caused by: com.squareup.moshi.JsonDataException: Expected an int but was 3957987913 at path $.Volumes[5].UsageData.Size
	at com.squareup.moshi.JsonUtf8Reader.nextInt(JsonUtf8Reader.java:926)
	at com.squareup.moshi.StandardJsonAdapters$7.fromJson(StandardJsonAdapters.java:196)
	at com.squareup.moshi.StandardJsonAdapters$7.fromJson(StandardJsonAdapters.java:193)
	at de.gesellix.docker.remote.api.VolumeUsageDataJsonAdapter.fromJson(VolumeUsageDataJsonAdapter.kt:38)
	at de.gesellix.docker.remote.api.VolumeUsageDataJsonAdapter.fromJson(VolumeUsageDataJsonAdapter.kt:21)
	at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
	at de.gesellix.docker.remote.api.VolumeJsonAdapter.fromJson(VolumeJsonAdapter.kt:96)
	at de.gesellix.docker.remote.api.VolumeJsonAdapter.fromJson(VolumeJsonAdapter.kt:26)
	at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
	at com.squareup.moshi.CollectionJsonAdapter.fromJson(CollectionJsonAdapter.java:81)
	at com.squareup.moshi.CollectionJsonAdapter$2.fromJson(CollectionJsonAdapter.java:55)
	at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
	at de.gesellix.docker.remote.api.SystemDataUsageResponseJsonAdapter.fromJson(SystemDataUsageResponseJsonAdapter.kt:84)
	at de.gesellix.docker.remote.api.SystemDataUsageResponseJsonAdapter.fromJson(SystemDataUsageResponseJsonAdapter.kt:26)
	at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
	at com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:70)
	at de.gesellix.docker.remote.api.client.SystemApi.systemDataUsage(SystemApi.kt:552)
	at de.gesellix.docker.remote.api.client.SystemApiIntegrationTest.lambda$systemDataUsage$1(SystemApiIntegrationTest.java:74)
@gesellix
Copy link
Contributor Author

Relates to #67, which seems to fix this issue.

@gesellix
Copy link
Contributor Author

Fixed with #67 (and the dependency update in docker-client/docker-remote-api-client#128)

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