jlengstorf / netlify-plugin-gatsby-cache

185 stars 21 forks source link

Plugin breaks in @netlify/build 18.11.2 #59

Open dnlmzw opened 3 years ago

dnlmzw commented 3 years ago

Hi there,

This plugin stopped working in between @netlify/build 18.10.0 and 18.11.2

I haven't changed my code, but my builds are triggered by a hook coming from Prismic. However, the latests builds have not been working. I'm receiving the following error:

3:21:34 PM: ────────────────────────────────────────────────────────────────
3:21:34 PM:   API error on "getLatestPluginRuns"                            
3:21:34 PM: ────────────────────────────────────────────────────────────────
3:21:34 PM: ​
3:21:34 PM:   Error message
3:21:34 PM:   unknown
3:21:34 PM: ​
3:21:34 PM:   Error location
3:21:34 PM:   While calling the Netlify API endpoint 'getLatestPluginRuns' with:
3:21:34 PM:   {
3:21:34 PM:     "site_id": "d7078eed-cf17-4cc8-ac82-e5f765f30c13",
3:21:34 PM:     "packages": [
3:21:34 PM:       "netlify-plugin-gatsby-cache"
3:21:34 PM:     ],
3:21:34 PM:     "state": "success"
3:21:34 PM:   }
3:21:34 PM: ​
3:21:34 PM:   Error properties
3:21:34 PM:   {
3:21:34 PM:     name: 'JSONHTTPError',
3:21:34 PM:     status: 422,
3:21:34 PM:     json: { code: 422, message: "parameter 'packages' must be an array" }
3:21:34 PM:   }