Skip to content

Can not run action update filter list #115

@nightmare199x

Description

@nightmare199x

Hi, i have error and can not update filter after sync folk. Please help!

Run npm run cloudflare-create

cloudflare-create
npm run cloudflare-create:list && npm run cloudflare-create:rule

cloudflare-create:list
node cf_list_create.js

Processing allowlist.txt
Processing blocklist.txt

Number of processed domains: 687961
Number of duplicate domains: 347126
Number of unnecessary domains: 113312
Number of allowed domains: 768
Number of blocked domains: 226755
Number of lists to be created: 227

Creating 227 lists for 226755 domains...
Error occurred while creating lists - TypeError: Cannot use 'in' operator to search for 'errors' in undefined
file:///home/runner/work/cloudflare-gateway-pihole-scripts/cloudflare-gateway-pihole-scripts/lib/helpers.js:129
throw new Error(HTTP error! Status: ${response.status} - ${ 'errors' in data ? data.errors[0].message : JSON.stringify(data) });
^

TypeError: Cannot use 'in' operator to search for 'errors' in undefined
at request (file:///home/runner/work/cloudflare-gateway-pihole-scripts/cloudflare-gateway-pihole-scripts/lib/helpers.js:129:79)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 172)
at async createZeroTrustListsAtOnce (file:///home/runner/work/cloudflare-gateway-pihole-scripts/cloudflare-gateway-pihole-scripts/lib/api.js:77:5)
at async file:///home/runner/work/cloudflare-gateway-pihole-scripts/cloudflare-gateway-pihole-scripts/cf_list_create.js:139:5

Node.js v20.14.0
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions