Gatsby: [www] Empty pages on plugin pages

Created on 17 Jan 2019  路  9Comments  路  Source: gatsbyjs/gatsby

Some plugin pages have empty pages:
https://www.gatsbyjs.org/packages/gatsby-source-sanity/?=sanity

I've did some digging and found out that the api we're calling is responding with an empty readme property. So it's not an issue on our end but maybe we want to setup or own endpoint so we're not dependant on algolia.

The plugin we're using is gatsby-source-npm-package-search which uses algolia/npm-search


API output for gatsby-source-sanity

{
  "name": "gatsby-source-sanity",
  "downloadsLast30Days": 985,
  "downloadsRatio": 0.00000340270253936103,
  "humanDownloadsLast30Days": "985",
  "popular": false,
  "version": "0.5.2",
  "versions": {
    "0.1.0": "2018-07-29T15:02:07.472Z",
    "0.1.1": "2018-07-29T15:16:36.366Z",
    "0.1.2": "2018-07-29T15:22:40.294Z",
    "0.1.3": "2018-07-29T15:37:06.989Z",
    "0.2.0": "2018-08-01T20:26:49.582Z",
    "0.2.1": "2018-08-01T23:44:35.157Z",
    "0.2.2": "2018-08-02T00:18:57.848Z",
    "0.3.0": "2018-08-03T14:15:07.977Z",
    "0.3.1": "2018-08-03T19:48:16.057Z",
    "0.3.2": "2018-08-03T21:30:30.058Z",
    "0.3.3": "2018-08-04T14:32:47.493Z",
    "0.3.4": "2018-08-10T22:53:03.804Z",
    "0.4.0": "2018-08-13T17:19:19.901Z",
    "0.4.1": "2018-08-22T01:13:38.415Z",
    "0.5.0": "2018-10-12T13:33:49.457Z",
    "0.5.1": "2018-10-12T13:38:16.219Z",
    "0.9.10-v1.0": "2019-01-02T14:46:44.971Z",
    "0.9.10-next.0": "2019-01-06T22:00:22.368Z",
    "0.9.10-next.1": "2019-01-07T20:41:09.409Z",
    "0.9.10-next.2": "2019-01-07T21:01:42.487Z",
    "0.9.10-next.3": "2019-01-08T10:43:59.328Z",
    "0.9.10-next.4": "2019-01-08T13:13:08.858Z",
    "0.9.10-next.5": "2019-01-11T10:00:43.749Z",
    "0.9.10-next.6": "2019-01-11T12:31:03.702Z",
    "0.9.10-next.7": "2019-01-12T00:33:48.630Z",
    "0.5.2": "2019-01-14T08:59:14.348Z",
    "0.9.10-next.8": "2019-01-14T18:32:49.425Z",
    "0.9.10-next.9": "2019-01-14T22:15:15.077Z",
    "0.9.10-next.10": "2019-01-15T09:27:54.183Z",
    "0.9.10-next.11": "2019-01-15T12:17:31.262Z"
  },
  "tags": {
    "latest": "0.5.2",
    "typed": "0.5.0",
    "next": "0.9.10-next.11"
  },
  "description": "Gatsby source plugin for building websites using Sanity.io as a backend.",
  "dependencies": {
    "@sanity/client": "^0.132.5",
    "@sanity/image-url": "^0.132.5",
    "gatsby-source-filesystem": "^2.0.0"
  },
  "devDependencies": {
    "@types/node": "^10.11.7",
    "cross-env": "^5.1.3",
    "husky": "^1.1.2",
    "prettier": "^1.14.3",
    "pretty-quick": "^1.7.0",
    "tslint": "^5.11.0",
    "tslint-config-prettier": "^1.15.0",
    "typescript": "^3.1.3"
  },
  "repository": {
    "url": "https://github.com/hcavalieri/gatsby-source-sanity",
    "project": "gatsby-source-sanity",
    "user": "hcavalieri",
    "host": "github.com",
    "path": "",
    "head": "dcb03b586165bb630ac924df865eacb56d7631ba",
    "branch": "dcb03b586165bb630ac924df865eacb56d7631ba"
  },
  "githubRepo": {
    "user": "hcavalieri",
    "project": "gatsby-source-sanity",
    "path": "",
    "head": "dcb03b586165bb630ac924df865eacb56d7631ba"
  },
  "gitHead": "dcb03b586165bb630ac924df865eacb56d7631ba",
  "readme": "",
  "owner": {
    "name": "hcavalieri",
    "avatar": "https://github.com/hcavalieri.png",
    "link": "https://github.com/hcavalieri"
  },
  "deprecated": false,
  "homepage": null,
  "license": "MIT",
  "keywords": [
    "gatsby",
    "gatsby-plugin",
    "gatsby-source-plugin"
  ],
  "computedKeywords": [],
  "computedMetadata": {},
  "created": 1532876527404,
  "modified": 1547554653826,
  "lastPublisher": {
    "name": "rexxars",
    "email": "[email protected]",
    "avatar": "https://gravatar.com/avatar/3e1447c9a6e5aed088af8ebc4297ffdb",
    "link": "https://www.npmjs.com/~rexxars"
  },
  "owners": [
    {
      "email": "[email protected]",
      "name": "bjoerge",
      "avatar": "https://gravatar.com/avatar/b60ee201135f11aabeb1c2d2eccfa728",
      "link": "https://www.npmjs.com/~bjoerge"
    },
    {
      "email": "[email protected]",
      "name": "hcavalieri",
      "avatar": "https://gravatar.com/avatar/0273bdb35d9bda75bc256e75f1f9d65e",
      "link": "https://www.npmjs.com/~hcavalieri"
    },
    {
      "email": "[email protected]",
      "name": "mariuslundgard",
      "avatar": "https://gravatar.com/avatar/52519966a7085e1720797218e9b65114",
      "link": "https://www.npmjs.com/~mariuslundgard"
    },
    {
      "email": "[email protected]",
      "name": "rexxars",
      "avatar": "https://gravatar.com/avatar/3e1447c9a6e5aed088af8ebc4297ffdb",
      "link": "https://www.npmjs.com/~rexxars"
    },
    {
      "email": "[email protected]",
      "name": "sanity-io",
      "avatar": "https://gravatar.com/avatar/cbeeb446d0c1169743bf453664abba2b",
      "link": "https://www.npmjs.com/~sanity-io"
    }
  ],
  "lastCrawl": "2019-01-15T12:17:34.742Z",
  "_searchInternal": {
    "concatenatedName": "gatsbysourcesanity",
    "alternativeNames": [
      "gatsbysourcesanity",
      "gatsby source sanity",
      "gatsby-source-sanity"
    ],
    "downloadsMagnitude": 3,
    "jsDelivrPopularity": 0
  },
  "dependents": 0,
  "humanDependents": "0",
  "changelogFilename": null,
  "jsDelivrHits": 0,
  "objectID": "gatsby-source-sanity"
}

bug upstream

Most helpful comment

Response from NPM so far:

We've gone through and reviewed all those packages, and here's the breakdown:

  • the i18n packages all have a "readme": "README.md" in their package.json, The matinainers should remove the readme field from their package.json for these.

  • The prismic package seems fine, but is still not showing a readme, so we're investigating further.

Ahmad Nassri

CTO @ npm, Inc.

All 9 comments

It seems like there was an issue with the algolia index and got fixed. So I'm closing this one, if it happens again we probably want to consider a private instance.

@Haroenv any chance you can have a look why these pages are still empty?
https://www.npmjs.com/package/gatsby-plugin-i18n
https://www.npmjs.com/package/gatsby-source-prismic
should have values

Latest version of prismic (2.2.0) doesn't have a readme on http://registry.npmjs.org/gatsby-source-prismic

i18n never had a readme on http://registry.npmjs.org/gatsby-plugin-i18n

This is something where npm should be contacted, I'll let you do that?

You can do similar error handling as Yarn does which worked on one of the two cases, not in the other

https://github.com/yarnpkg/website/blob/master/js/src/lib/Details/index.js#L122-L131

Hiya!

This issue has gone quiet. Spooky quiet. 馃懟

We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

Thanks for being a part of the Gatsby community! 馃挭馃挏

Response from NPM so far:

We've gone through and reviewed all those packages, and here's the breakdown:

  • the i18n packages all have a "readme": "README.md" in their package.json, The matinainers should remove the readme field from their package.json for these.

  • The prismic package seems fine, but is still not showing a readme, so we're investigating further.

Ahmad Nassri

CTO @ npm, Inc.

Good stuff here, thanks for digging into this @moonmeister! One more package with a blank readme is https://www.gatsbyjs.org/packages/gatsby-source-prismic-graphql/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jimfilippou picture jimfilippou  路  3Comments

ghost picture ghost  路  3Comments

andykais picture andykais  路  3Comments

magicly picture magicly  路  3Comments

3CordGuy picture 3CordGuy  路  3Comments