-
-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
bugSomething isn't workingSomething isn't working
Description
async function generateReleaseData() {
try {
const response = await fetch(
"https://api.github.com/repos/zmkfirmware/zmk-studio/releases/latest",
{
headers: process.env.GITHUB_TOKEN
? { Authorization: `Bearer ${process.env.GITHUB_TOKEN}` }
: {},
},
);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
Right now every time I try to download zmk studio via yay or just by building it through npm the 4th line gives me an error.
> [email protected] dev
> npm run generate-data && vite
> [email protected] generate-data
> node scripts/generate-release-data.js
Error generating release data: TypeError: fetch failed
at node:internal/deps/undici/undici:15445:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async generateReleaseData (file:///home/[user]/zmk-studio/scripts/generate-release-data.js:10:22) {
[cause]: AggregateError [ECONNREFUSED]:
at internalConnectMultiple (node:net:1134:18)
at afterConnectMultiple (node:net:1715:7) {
code: 'ECONNREFUSED',
[errors]: [ [Error], [Error] ]
}
}
This might be github blocking repeated requests or something
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working