When I try to deploy my dev site, which has some netlify functions, I get the following error. The site is definitely linked (netlify status
goes fine, and I get the same error even when I unlink
and link
). Any ideas?
◈ Netlify Dev ◈
FetchError: invalid json response body at https://api.netlify.com/api/v1/sites/3e0c3a4f-1e9a-48f1-8d56-df32c90f53b1/service-instances reason: Unexpected end of JSON input
at /Users/crush/node_modules/netlify/node_modules/node-fetch/lib/index.js:273:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getAddons (/Users/crush/node_modules/netlify/src/addons.js:39:16)
at async addEnvVariables (/Users/crush/node_modules/netlify-cli/src/utils/dev.js:29:18)
at async DevCommand.run (/Users/crush/node_modules/netlify-cli/src/commands/dev/index.js:368:19)
at async DevCommand._run (/Users/crush/node_modules/@oclif/command/lib/command.js:43:20)
at async Config.runCommand (/Users/crush/node_modules/@oclif/config/lib/config.js:173:24)
at async Main.run (/Users/crush/node_modules/@oclif/command/lib/main.js:28:9)
at async Main._run (/Users/crush/node_modules/@oclif/command/lib/command.js:43:20) {
type: 'invalid-json'
}
◈ Error retrieving addons data for site 3e0c3a4f-1e9a-48f1-8d56-df32c90f53b1. Double-check your login status with 'netlify status' or contact support with details of your error.
◈ "netlify dev" exited with code 0. Shutting down Netlify Dev server