Are you experiencing an issue with...
:beetle: Description
The microbadger to show a show Docker image size stopped working for me, it always says unknown.
:link: https://img.shields.io/microbadger/image-size/rfgamaral/gphotos-uploader.svg
:link: https://github.com/rfgamaral/docker-gphotos-uploader/blob/master/README.md (demo)
Hmm, the API is returning DownloadSizes of 0 for the individual layers, and no DownloadSize at the top level of the response object:
{ LatestSHA:
'd4e0e26fe228382d901ba52271410fa0d29f5bc4863bd43ddee9ef6b5b511128',
WebhookURL:
'https://hooks.microbadger.com/images/rfgamaral/gphotos-uploader/Cky46Ijrrz8MMuSbD1JkW7EjX1E=',
UpdatedAt: '2019-09-12T12:04:21.590821Z',
Description:
'🐳 Mass upload media folders to your Google Photos account with this Docker image.',
LastUpdated: '2019-09-10T15:38:10.32249Z',
PullCount: 199583,
StarCount: 2,
Versions:
[ { SHA:
'95ba62f7fddd2b50790b722a406c2a99848294e7ec5e4f437b8e24b0598e3442',
Tags: [ { tag: 'arm64v8-latest' } ],
ImageName: 'rfgamaral/gphotos-uploader',
Author: '',
Labels:
{ maintainer: '[email protected]',
'org.label-schema.build-date': '2019-09-07T10:58:31Z',
'org.label-schema.description':
'Mass upload media folders to your Google Photos account with this Docker image.',
'org.label-schema.name': 'rfgamaral/gphotos-uploader',
'org.label-schema.schema-version': '1.0',
'org.label-schema.vcs-ref': '1f9d572',
'org.label-schema.vcs-url': 'https://github.com/rfgamaral/docker-gphotos-uploader.git' },
LayerCount: 15,
DownloadSize: 0,
Created: '2019-09-07T11:05:36.801243Z',
VersionControl:
{ Type: 'git',
URL:
'https://github.com/rfgamaral/docker-gphotos-uploader/tree/1f9d572',
Commit: '1f9d572' } },
{ SHA:
'ff19356d1ae26797f4eb77d88c4b2d172ef61075480762587bd48d6464c84726',
Tags: [ { tag: 'arm32v7-latest' } ],
ImageName: 'rfgamaral/gphotos-uploader',
Author: '',
Labels:
{ maintainer: '[email protected]',
'org.label-schema.build-date': '2019-09-07T11:08:10Z',
'org.label-schema.description':
'Mass upload media folders to your Google Photos account with this Docker image.',
'org.label-schema.name': 'rfgamaral/gphotos-uploader',
'org.label-schema.schema-version': '1.0',
'org.label-schema.vcs-ref': '1f9d572',
'org.label-schema.vcs-url': 'https://github.com/rfgamaral/docker-gphotos-uploader.git' },
LayerCount: 15,
DownloadSize: 0,
Created: '2019-09-07T11:14:39.774234Z',
VersionControl:
{ Type: 'git',
URL:
'https://github.com/rfgamaral/docker-gphotos-uploader/tree/1f9d572',
Commit: '1f9d572' } },
{ SHA:
'd4e0e26fe228382d901ba52271410fa0d29f5bc4863bd43ddee9ef6b5b511128',
Tags: [ { tag: 'latest' }, { tag: 'amd64-latest' } ],
ImageName: 'rfgamaral/gphotos-uploader',
Author: '',
Labels:
{ maintainer: '[email protected]',
'org.label-schema.build-date': '2019-09-07T10:50:38Z',
'org.label-schema.description':
'Mass upload media folders to your Google Photos account with this Docker image.',
'org.label-schema.name': 'rfgamaral/gphotos-uploader',
'org.label-schema.schema-version': '1.0',
'org.label-schema.vcs-ref': '1f9d572',
'org.label-schema.vcs-url': 'https://github.com/rfgamaral/docker-gphotos-uploader.git' },
LayerCount: 14,
DownloadSize: 0,
Created: '2019-09-07T10:56:02.14363Z',
VersionControl:
{ Type: 'git',
URL:
'https://github.com/rfgamaral/docker-gphotos-uploader/tree/1f9d572',
Commit: '1f9d572' } } ],
Id:
'd4e0e26fe228382d901ba52271410fa0d29f5bc4863bd43ddee9ef6b5b511128',
ImageName: 'rfgamaral/gphotos-uploader',
ImageURL: 'https://hub.docker.com/r/rfgamaral/gphotos-uploader/',
LayerCount: 14,
Labels:
{ maintainer: '[email protected]',
'org.label-schema.build-date': '2019-09-07T10:50:38Z',
'org.label-schema.description':
'Mass upload media folders to your Google Photos account with this Docker image.',
'org.label-schema.name': 'rfgamaral/gphotos-uploader',
'org.label-schema.schema-version': '1.0',
'org.label-schema.vcs-ref': '1f9d572',
'org.label-schema.vcs-url': 'https://github.com/rfgamaral/docker-gphotos-uploader.git' },
LatestVersion: 'amd64-latest' }
(that's from https://api.microbadger.com/v1/images/rfgamaral/gphotos-uploader)
Is it possible the image is empty?
If not I would guess this is an upstream issue.
This keeps on happening on a regular basis (see #2532 amongst others), I wouldn't be surprised if their API was being unreasonable again. :confused:
We could return a message that makes it clear this is a temporary upstream issue. How about we use the schema to reject this? That way it would show invalid response data, which seems like the right thing to say.
Doesn't really help the problem though… seems like either way it would be nice to have a replacement service.
Added:
@PyvesB I see you and @chris48s were discussing this here: https://github.com/badges/shields/pull/3143#pullrequestreview-209924749
You decided it was better to accept this case, as it sounds like it happens a lot.
If we know this badge is going to be flaky, how about we add that to the documentation and link to this issue for discussion?
Doesn't really help the problem though… seems like either way it would be nice to have a replacement service.
Believe it or not, Microbadger was already a replacement for the ImageLayers service, which I deprecated a while back!
If we know this badge is going to be flaky, how about we add that to the documentation and link to this issue for discussion?
Sounds like a good first step, I'll add a bit of documentation. Hitting the webhook does help, @rfgamaral I've just fixed your badge by doing so. I'll mention how to do that as well.
I've also notified the Microbadger team again (see link above).
Good new and bad news:
@PyvesB thanks for raising this. The issue is microbadger is now a side project and we have limited time to work on it. But we'll do what we can to improve the stability.
I'll talk with Liz and Anne and we'll see what we can do to improve the situation.
There's not much else we can do right now, and I don't expect we'll have to action anything on our side when they improve their service's stability. Closing for now.
Most helpful comment
Believe it or not, Microbadger was already a replacement for the ImageLayers service, which I deprecated a while back!
Sounds like a good first step, I'll add a bit of documentation. Hitting the webhook does help, @rfgamaral I've just fixed your badge by doing so. I'll mention how to do that as well.