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

My build stopped working with @netlify/build 18.11.2 #3649

Closed
dnlmzw opened this issue Sep 22, 2021 · 2 comments
Closed

My build stopped working with @netlify/build 18.11.2 #3649

dnlmzw opened this issue Sep 22, 2021 · 2 comments
Assignees
Labels
type: bug code to address defects in shipped code

Comments

@dnlmzw
Copy link

dnlmzw commented Sep 22, 2021

Hi there,

My builds stopped working in between @netlify/build 18.10.0 and 18.11.2, although I didn't change my code.

Configuration

My netlify.toml has the following:

[[plugins]]
package = "netlify-plugin-gatsby-cache"

Deploy logs

3:21:54 PM: ────────────────────────────────────────────────────────────────
3:21:54 PM:   Netlify Build                                                 
3:21:54 PM: ────────────────────────────────────────────────────────────────
3:21:54 PM: ​
3:21:54 PM: ❯ Version
3:21:54 PM:   @netlify/build 18.11.2
3:21:54 PM: ​
3:21:54 PM: ❯ Flags
3:21:54 PM:   baseRelDir: true
3:21:54 PM:   buildId: 6149dc54aef1b700a4d4826f
3:21:54 PM:   deployId: 6149dc54aef1b700a4d48271
3:21:54 PM: ​
3:21:54 PM: ❯ Current directory
3:21:54 PM:   /opt/build/repo
3:21:54 PM: ​
3:21:54 PM: ❯ Config file
3:21:54 PM:   /opt/build/repo/netlify.toml
3:21:54 PM: ​
3:21:54 PM: ❯ Context
3:21:54 PM:   production
3:21:54 PM: ​
3:21:54 PM: ────────────────────────────────────────────────────────────────
3:21:54 PM:   API error on "getLatestPluginRuns"                            
3:21:54 PM: ────────────────────────────────────────────────────────────────
3:21:54 PM: ​
3:21:54 PM:   Error message
3:21:54 PM:   Unprocessable Entity
3:21:54 PM: ​
3:21:54 PM:   Error location
3:21:54 PM:   While calling the Netlify API endpoint 'getLatestPluginRuns' with:
3:21:54 PM:   {
3:21:54 PM:     "site_id": "7acef7a8-6524-4e36-8258-47ed71804b9a",
3:21:54 PM:     "packages": [
3:21:54 PM:       "netlify-plugin-gatsby-cache"
3:21:54 PM:     ],
3:21:54 PM:     "state": "success"
3:21:54 PM:   }
3:21:54 PM: ​
3:21:54 PM:   Error properties
3:21:54 PM:   {
3:21:54 PM:     name: 'JSONHTTPError',
3:21:54 PM:     status: 422,
3:21:54 PM:     json: { code: 422, message: "parameter 'packages' must be an array" }
3:21:54 PM:   }
3:21:54 PM: ​
3:21:54 PM:   Resolved config
3:21:54 PM:   build:
3:21:54 PM:     command: npm run build
3:21:54 PM:     commandOrigin: ui
3:21:54 PM:     environment:
3:21:54 PM:       - GATSBY_NODE_ENV
3:21:54 PM:       - GATSBY_RECAPTCHA_KEY
3:21:54 PM:       - INCOMING_HOOK_BODY
3:21:54 PM:       - INCOMING_HOOK_TITLE
3:21:54 PM:       - INCOMING_HOOK_URL
3:21:54 PM:       - PRISMIC_API_KEY
3:21:54 PM:       - PRISMIC_REPO
3:21:54 PM:       - SENTRY_DSN
3:21:54 PM:       - SITE_RECAPTCHA_SECRET
3:21:54 PM:     publish: /opt/build/repo/public
3:21:54 PM:     publishOrigin: ui
3:21:54 PM:   plugins:
3:21:54 PM:     - inputs: {}
3:21:54 PM:       origin: config
3:21:54 PM:       package: netlify-plugin-gatsby-cache
@dnlmzw dnlmzw added the type: bug code to address defects in shipped code label Sep 22, 2021
@ehmicky ehmicky changed the title Gatsby cache plugin stopped working My build stopped working with @netlify/build 18.11.2 Sep 22, 2021
@ehmicky ehmicky self-assigned this Sep 22, 2021
@ehmicky
Copy link
Contributor

ehmicky commented Sep 22, 2021

Hi @dnlmzw,

This bug should now have been fixed with 18.12.0. The problem was due to a bug in node-fetch (node-fetch/node-fetch#1300), reported in our status page.

Could you please try running your build again to confirm this is now fixed? Thanks!

@dnlmzw
Copy link
Author

dnlmzw commented Sep 23, 2021

@ehmicky This seems to work. Thank you :)

@dnlmzw dnlmzw closed this as completed Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

2 participants