Skip to content

Cannot create CGPS List...Please help #123

@docj1

Description

@docj1

I have used the API from cloud flare and ID as suggested in the instructions. I am not sure why I am getting this error.

Sorry, i am a new to this so any help will be appreciated.

Command #6: node cf_list_create.js

Processing allowlist.txt
Processing blocklist.txt

Number of processed domains: 372720
Number of duplicate domains: 95783
Number of unnecessary domains: 87507
Number of allowed domains: 189
Number of blocked domains: 189241
Number of lists to be created: 190

Creating 190 lists for 189241 domains...
An error occured while making a web request: "Error: Response not OK", retrying. Attempt 1 of 50.

Could not create "CGPS List - Chunk 1" - Error: HTTP error! Status: 400 - Authentication error - Error: Response not OK
file:///Users/admin/cloudflare-gateway-pihole-scripts/lib/helpers.js:131
throw new Error(HTTP error! Status: ${response.status} - ${ (data && 'errors' in data) ? data.errors[0].message : data } - ${error});
^

Error: HTTP error! Status: 400 - Authentication error - Error: Response not OK
at request (file:///Users/admin/cloudflare-gateway-pihole-scripts/lib/helpers.js:131:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async createZeroTrustListsOneByOne (file:///Users/admin/cloudflare-gateway-pihole-scripts/lib/api.js:48:7)
at async file:///Users/admin/cloudflare-gateway-pihole-scripts/cf_list_create.js:141:5

Node.js v20.15.0

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