Contentful API deployment

I need advice to debug deploy Netlify App I added in my secret key/variables like the docs said but something is missing and I am not quite sure what it is

hi there,

did you delete your site? I’m not able to see that deploy log.

Hi there! Yes I did I thought maybe starting it over will help (I tried everything) I will send you the new link:

https://app.netlify.com/sites/sad-mayer it is not a live link since I cannot get the site live.

I also tried to get new Contetnful API keys and add to my git ignore and also my environment variables in Netlfiy, I am pretty sure it is an issue with the API not being able to read the production site

can you post or link us to a deploy log, pls?

Sure:

11:20:34 PM: Build ready to start
11:20:36 PM: build-image version: ca811f47d4c1cbd1812d1eb6ecb0c977e86d1a1d
11:20:36 PM: build-image tag: v3.3.20
11:20:36 PM: buildbot version: be8ecf2af866e16fa4301cc5c14de2ccbbb21cf4
11:20:36 PM: Fetching cached dependencies
11:20:36 PM: Failed to fetch cache, continuing with build
11:20:36 PM: Starting to prepare the repo for build
11:20:36 PM: No cached dependencies found. Cloning fresh repo
11:20:36 PM: git clone https://github.com/accordingtoherr/andrea
11:20:37 PM: Preparing Git Reference refs/heads/master
11:20:39 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: β€˜public’ versus β€˜public/’ in the Netlify UI
11:20:39 PM: Starting build script
11:20:39 PM: Installing dependencies
11:20:39 PM: Python version set to 2.7
11:20:40 PM: v12.18.0 is already installed.
11:20:41 PM: Now using node v12.18.0 (npm v6.14.4)
11:20:41 PM: Started restoring cached build plugins
11:20:41 PM: Finished restoring cached build plugins
11:20:41 PM: Attempting ruby version 2.7.1, read from environment
11:20:42 PM: Using ruby version 2.7.1
11:20:42 PM: Using PHP version 5.6
11:20:42 PM: 5.2 is already installed.
11:20:43 PM: Using Swift version 5.2
11:20:43 PM: Started restoring cached node modules
11:20:43 PM: Finished restoring cached node modules
11:20:43 PM: Started restoring cached yarn cache
11:20:43 PM: Finished restoring cached yarn cache
11:20:43 PM: Installing yarn at version 1.22.4
11:20:43 PM: Installing Yarn!
11:20:43 PM: > Downloading tarball…
11:20:43 PM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz β†’ /tmp/yarn.tar.gz.yHMmDuUIV1
11:20:43 PM: % Total % Received % Xferd Average Speed Time Time Time Current
11:20:43 PM: Dload Upload Total Spent Left Speed
11:20:43 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
11:20:43 PM: 100 80 100 80 0 0 269 0 --:–:-- --:–:-- --:–:-- 269
11:20:43 PM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
11:20:43 PM: 100 93 100 93 0 0 152 0 --:–:-- --:–:-- --:–:-- 556
11:20:43 PM: 100 630 100 630 0 0 705 0 --:–:-- --:–:-- --:–:-- 705
11:20:44 PM: 100 1215k 100 1215k 0 0 876k 0 0:00:01 0:00:01 --:–:-- 876k
11:20:44 PM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc β†’ /tmp/yarn.tar.gz.yHMmDuUIV1.asc
11:20:44 PM: 100 84 100 84 0 0 2965 0 --:–:-- --:–:-- --:–:-- 2965
11:20:44 PM: 0 97 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
11:20:44 PM: 100 97 100 97 0 0 1597 0 --:–:-- --:–:-- --:–:-- 97000
11:20:44 PM: 100 634 100 634 0 0 6822 0 --:–:-- --:–:-- --:–:-- 6822
11:20:44 PM: 100 1028 100 1028 0 0 7545 0 --:–:-- --:–:-- --:–:-- 7545
11:20:44 PM: > Verifying integrity…
11:20:44 PM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
11:20:44 PM: gpg: Good signature from β€œYarn Packaging <yarn@dan.cx>”
11:20:44 PM: gpg: WARNING: This key is not certified with a trusted signature!
11:20:44 PM: gpg: There is no indication that the signature belongs to the owner.
11:20:44 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
11:20:44 PM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
11:20:44 PM: > GPG signature looks good
11:20:44 PM: > Extracting to ~/.yarn…
11:20:44 PM: > Adding to $PATH…
11:20:45 PM: > Successfully installed Yarn 1.22.4! Please open another terminal where the yarn command will now be available.
11:20:45 PM: Installing NPM modules using Yarn version 1.22.4
11:20:45 PM: yarn install v1.22.4
11:20:46 PM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
11:20:46 PM: [1/4] Resolving packages…
11:20:47 PM: [2/4] Fetching packages…
11:20:53 PM: warning url-loader@1.1.2: Invalid bin field for β€œurl-loader”.
11:21:16 PM: info fsevents@2.1.3: The platform β€œlinux” is incompatible with this module.
11:21:16 PM: info β€œfsevents@2.1.3” is an optional dependency and failed compatibility check. Excluding it from installation.
11:21:16 PM: info fsevents@1.2.13: The platform β€œlinux” is incompatible with this module.
11:21:16 PM: info β€œfsevents@1.2.13” is an optional dependency and failed compatibility check. Excluding it from installation.
11:21:16 PM: [3/4] Linking dependencies…
11:21:16 PM: warning β€œgatsby > @pmmmwh/react-refresh-webpack-plugin@0.3.3” has incorrect peer dependency β€œreact-refresh@^0.8.2”.
11:21:16 PM: warning β€œgatsby > @typescript-eslint/eslint-plugin > tsutils@3.17.1” has unmet peer dependency β€œtypescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta”.
11:21:32 PM: [4/4] Building fresh packages…
11:21:37 PM: success Saved lockfile.
11:21:37 PM: $ node ./bin/hello.js
11:21:37 PM: Hey there! :wave:
11:21:37 PM: Thanks for giving the gatsby-contentful-portfolio a try. :tada:
11:21:37 PM: To get you going really quickly this project includes a setup step.
11:21:37 PM: npm run setup automates the following steps for you:
11:21:37 PM: - creates a config file .env
11:21:37 PM: - imports a predefined content model
11:21:37 PM: When this is done run:
11:21:37 PM: gatsby develop to start a development environment at localhost:8000
11:21:37 PM: or
11:21:37 PM: gatsby build to create a production ready static site in ./public
11:21:37 PM: Done in 51.73s.
11:21:37 PM: NPM modules installed using Yarn
11:21:37 PM: Started restoring cached go cache
11:21:37 PM: Finished restoring cached go cache
11:21:37 PM: go version go1.14.4 linux/amd64
11:21:37 PM: go version go1.14.4 linux/amd64
11:21:37 PM: Installing missing commands
11:21:37 PM: Verify run directory
11:21:39 PM:
11:21:39 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
11:21:39 PM: β”‚ Netlify Build β”‚
11:21:39 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11:21:39 PM:
11:21:39 PM: ❯ Version
11:21:39 PM: @netlify/build 3.0.1
11:21:39 PM:
11:21:39 PM: ❯ Flags
11:21:39 PM: deployId: 5f1e4802df15df000703e6b8
11:21:39 PM: mode: buildbot
11:21:39 PM:
11:21:39 PM: ❯ Current directory
11:21:39 PM: /opt/build/repo
11:21:39 PM:
11:21:39 PM: ❯ Config file
11:21:39 PM: No config file was defined: using default values.
11:21:39 PM:
11:21:39 PM: ❯ Context
11:21:39 PM: production
11:21:39 PM:
11:21:39 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
11:21:39 PM: β”‚ 1. Build command from Netlify app β”‚
11:21:39 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11:21:39 PM:
11:21:39 PM: $ gatsby build
11:21:42 PM: success open and validate gatsby-configs - 0.027s
11:21:42 PM: success load plugins - 0.857s
11:21:42 PM: success onPreInit - 0.011s
11:21:42 PM: success delete html and css files from previous builds - 0.012s
11:21:42 PM: success initialize cache - 0.007s
11:21:43 PM: success copy gatsby files - 0.109s
11:21:43 PM: success onPreBootstrap - 0.011s
11:21:43 PM: success createSchemaCustomization - 0.025s
11:21:43 PM: Starting to fetch data from Contentful
11:21:43 PM: info Fetching default locale
11:21:43 PM: info default locale is: en-US
11:21:43 PM: info contentTypes fetched 4
11:21:43 PM: info Updated entries 15
11:21:43 PM: info Deleted entries 0
11:21:43 PM: info Updated assets 15
11:21:43 PM: info Deleted assets 0
11:21:43 PM: Fetch Contentful data: 415.327ms
11:21:44 PM: success Downloading remote files - 0.478s - 15/15 31.39/s
11:21:44 PM: success source and transform nodes - 1.067s
11:21:44 PM: success building schema - 0.458s
11:21:44 PM: success createPages - 0.001s
11:21:44 PM: success createPagesStatefully - 0.074s
11:21:44 PM: success updating schema - 0.031s
11:21:44 PM: success onPreExtractQueries - 0.002s
11:21:45 PM: success extract queries from components - 0.603s
11:21:45 PM: success write out redirect data - 0.105s
11:21:45 PM: success Build manifest and related icons - 0.376s
11:21:45 PM: success onPostBootstrap - 0.378s
11:21:45 PM: info bootstrap finished - 6.812s
11:21:45 PM: success run static queries - 0.015s - 3/3 202.25/s
11:21:47 PM: success run page queries - 1.654s - 4/4 2.42/s
11:21:47 PM: success write out requires - 0.004s
11:21:47 PM: error β€œgatsby-plugin-mailchimp” threw an error while running the onCreateWebpackConfig lifecycle:
11:21:47 PM: Mailchimp endpoint required and must be of type string. See repo README for more info.
11:21:47 PM: 10 |
11:21:47 PM: 11 | if (!isString) {
11:21:47 PM: > 12 | throw new Error(
11:21:47 PM: | ^
11:21:47 PM: 13 | β€˜Mailchimp endpoint required and must be of type string. See repo README for more info.’,
11:21:47 PM: 14 | );
11:21:47 PM: 15 | } else if (endpoint.length < 40) {
11:21:47 PM:
11:21:47 PM:
11:21:47 PM: Error: Mailchimp endpoint required and must be of type string. See repo README for more info.
11:21:47 PM:
11:21:47 PM: - gatsby-node.js:12 Object.exports.onCreateWebpackConfig
11:21:47 PM: [repo]/[gatsby-plugin-mailchimp]/gatsby-node.js:12:15
11:21:47 PM:
11:21:47 PM: - api-runner-node.js:309 runAPI
11:21:47 PM: [repo]/[gatsby]/dist/utils/api-runner-node.js:309:37
11:21:47 PM:
11:21:47 PM: - api-runner-node.js:428 Promise.catch.decorateEvent.pluginName
11:21:47 PM: [repo]/[gatsby]/dist/utils/api-runner-node.js:428:15
11:21:47 PM:
11:21:47 PM: - debuggability.js:384 Promise._execute
11:21:47 PM: [repo]/[bluebird]/js/release/debuggability.js:384:9
11:21:47 PM:
11:21:47 PM: - promise.js:518 Promise._resolveFromExecutor
11:21:47 PM: [repo]/[bluebird]/js/release/promise.js:518:18
11:21:47 PM:
11:21:47 PM: - promise.js:103 new Promise
11:21:47 PM: [repo]/[bluebird]/js/release/promise.js:103:10
11:21:47 PM:
11:21:47 PM: - api-runner-node.js:427
11:21:47 PM: [repo]/[gatsby]/dist/utils/api-runner-node.js:427:12
11:21:47 PM:
11:21:47 PM: - util.js:16 tryCatcher
11:21:47 PM: [repo]/[bluebird]/js/release/util.js:16:23
11:21:47 PM:
11:21:47 PM: - reduce.js:166 Object.gotValue
11:21:47 PM: [repo]/[bluebird]/js/release/reduce.js:166:18
11:21:47 PM:
11:21:47 PM: - reduce.js:155 Object.gotAccum
11:21:47 PM: [repo]/[bluebird]/js/release/reduce.js:155:25
11:21:47 PM:
11:21:47 PM: - util.js:16 Object.tryCatcher
11:21:47 PM: [repo]/[bluebird]/js/release/util.js:16:23
11:21:47 PM:
11:21:47 PM: - promise.js:547 Promise._settlePromiseFromHandler
11:21:47 PM: [repo]/[bluebird]/js/release/promise.js:547:31
11:21:47 PM:
11:21:47 PM: - promise.js:604 Promise._settlePromise
11:21:47 PM: [repo]/[bluebird]/js/release/promise.js:604:18
11:21:47 PM:
11:21:47 PM: - promise.js:649 Promise._settlePromise0
11:21:47 PM: [repo]/[bluebird]/js/release/promise.js:649:10
11:21:47 PM:
11:21:47 PM: - promise.js:729 Promise._settlePromises
11:21:47 PM: [repo]/[bluebird]/js/release/promise.js:729:18
11:21:47 PM:
11:21:47 PM: - async.js:93 _drainQueueStep
11:21:47 PM: [repo]/[bluebird]/js/release/async.js:93:12
11:21:47 PM:
11:21:47 PM:
11:21:47 PM: not finished Generating image thumbnails - 1.792s
11:21:47 PM: not finished Building production JavaScript and CSS bundles - 0.197s
11:21:47 PM: (sharp:1498): GLib-CRITICAL **: 03:21:47.799: g_hash_table_lookup: assertion β€˜hash_table != NULL’ failed
11:21:47 PM:
11:21:47 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
11:21:47 PM: β”‚ β€œbuild.command” failed β”‚
11:21:47 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
11:21:47 PM:
11:21:47 PM: Error message
11:21:47 PM: Command failed with exit code 1: gatsby build
11:21:47 PM:
11:21:47 PM: Error location
11:21:47 PM: In Build command from Netlify app:
11:21:47 PM: gatsby build
11:21:47 PM:
11:21:47 PM: Resolved config
11:21:47 PM: build:
11:21:47 PM: command: gatsby build
11:21:47 PM: commandOrigin: ui
11:21:47 PM: environment:
11:21:47 PM: - CONTENTFUL_ACCESS_TOKEN
11:21:47 PM: - CONTENTFUL_SPACE_ID
11:21:47 PM: publish: /opt/build/repo/public
11:21:47 PM: Caching artifacts
11:21:47 PM: Started saving node modules
11:21:47 PM: Finished saving node modules
11:21:47 PM: Started saving build plugins
11:21:48 PM: Finished saving build plugins
11:21:48 PM: Started saving yarn cache
11:21:48 PM: Finished saving yarn cache
11:21:48 PM: Started saving pip cache
11:21:48 PM: Finished saving pip cache
11:21:48 PM: Started saving emacs cask dependencies
11:21:48 PM: Finished saving emacs cask dependencies
11:21:48 PM: Started saving maven dependencies
11:21:48 PM: Finished saving maven dependencies
11:21:48 PM: Started saving boot dependencies
11:21:48 PM: Finished saving boot dependencies
11:21:48 PM: Started saving go dependencies
11:21:48 PM: Finished saving go dependencies
11:21:50 PM: Error running command: Build script returned non-zero exit code: 1
11:21:50 PM: Failing build: Failed to build site
11:21:50 PM: Failed during stage β€˜building site’: Build script returned non-zero exit code: 1
11:21:50 PM: Finished processing build request in 1m14.410865884s

alrighty, so the problem is definitely in here somewhere - this is ultimately why the build process errors out. I can’t tell you exactly why - but did you take a look at the repo readme as it mentions? that might be the best place to start. :thinking:

you know what, that is it!! I will remove that mail chimp plugin since it was preloaded to the starter I am using but I do not need it - I will reach back out if it still isnt working but I think that is it.

Emily Herr

1 Like

great. Yes, ping us back if this doesn’t work (and even if it does, it’ll not be the only time someone bumps into this issue)

will do!! honestly even having trouble deleting it haaha

1 Like

Emily Herr
cell: 561-301-6451
emilycherr123@gmail.com