Shields: Packagist badges: invalid response data

Created on 29 Mar 2019  路  11Comments  路  Source: badges/shields

Are you experiencing an issue with...

  • [x] shields.io
  • [ ] My own instance
  • [ ] [gh-badges NPM package](https://www.npmjs.com/package/gh-badges)

:beetle: Description

MIT Packagist license is not set. Display information: "invalid response data".

:link: Link to the badge
https://img.shields.io/packagist/l/cse/helpers-json.svg
Packagist

bug service-badge

Most helpful comment

Alright I believe I've got it fixed in the linked PR, viewable/testable in the associated staging app @ https://shields-staging-pr-3239.herokuapp.com/

Here's the corresponding badges mentioned in this thread using the staging app endpoint:

https://shields-staging-pr-3239.herokuapp.com/packagist/l/cse/helpers-json.svg

https://shields-staging-pr-3239.herokuapp.com/packagist/dt/adldap2/adldap2.svg

https://shields-staging-pr-3239.herokuapp.com/packagist/dt/adldap2/adldap2-laravel.svg

I'm signing out for the night but if anyone else has any other badges that are currently broken, try checking them out in the staging app, and let me know if they're still broken even in the staging app

All 11 comments

Problem looks to be related to the schema we're using.

Relevant snippet from the API response shows that the dev-master object key does not contain an extra key

"dev-master": {
  "name": "cse/helpers-json",
  "description": "The helpers allows you to JSON processing. Encode, decode, check error, throw exception - all this is available in this library.",
  "keywords": [],
  "homepage": "https://github.com/cs-eliseev/helpers-json",
  "version": "dev-master",
  "version_normalized": "9999999-dev",
  "license": [],
  "authors": [],
  "source": {...},
  "dist": {...},
  "type": "library",
  "time": "2019-03-25T08:37:18+00:00",
  "autoload": {...},
  "require": {...},
  "require-dev": {...}
},

But I believe the schema has extra as a required key: https://github.com/badges/shields/blob/master/services/packagist/packagist-base.js#L11

I'm getting this as well with downloads when I never used to have an issue:


Raw:

<img src="https://img.shields.io/packagist/dt/adldap2/adldap2.svg?style=flat-square">
<img src="https://img.shields.io/packagist/dt/adldap2/adldap2-laravel.svg?style=flat-square">

Same underlying issue, I'm working on fixing it now

Oh okay awesome thanks so much! :smile:

Alright I believe I've got it fixed in the linked PR, viewable/testable in the associated staging app @ https://shields-staging-pr-3239.herokuapp.com/

Here's the corresponding badges mentioned in this thread using the staging app endpoint:

https://shields-staging-pr-3239.herokuapp.com/packagist/l/cse/helpers-json.svg

https://shields-staging-pr-3239.herokuapp.com/packagist/dt/adldap2/adldap2.svg

https://shields-staging-pr-3239.herokuapp.com/packagist/dt/adldap2/adldap2-laravel.svg

I'm signing out for the night but if anyone else has any other badges that are currently broken, try checking them out in the staging app, and let me know if they're still broken even in the staging app

I have the badge broken too:
Carbon downloads

And shields-staging-pr-3239.herokuapp.com fixed it:
Carbon downloads

Thanks, hope to see it merged.

Okay awesome thanks so much! =)

Hello, I see you closed this but right now as you can see in my comment, the version on img.shields.io is still "invalid response data" and the herokuapp is not available neither. Would we see this on shields.io soon?

Sorry, I did not understood the procedure, it's a auto-close from the PR and deployment is in progress. Great!

FYI the fix has been deployed, so your packagist badges should be working again @ https://img.shields.io/packagist/**

Thanks again for the quick fix @calebcartwright, much appreciated!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lukeeey picture lukeeey  路  3Comments

calebcartwright picture calebcartwright  路  3Comments

stclairdaniel picture stclairdaniel  路  3Comments

korenyoni picture korenyoni  路  3Comments

techtonik picture techtonik  路  3Comments