cloudflare-gateway-pihole-scripts
cloudflare-gateway-pihole-scripts copied to clipboard
SyntaxError: Unexpected token
Got this error today. Everything worked fine several days ago.
Could not create "CGPS List - Chunk 1" - SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
undefined:1
<!DOCTYPE html>
^
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at JSON.parse (<anonymous>)
at parseJSONFromBytes (node:internal/deps/undici/undici:4306:19)
at successSteps (node:internal/deps/undici/undici:4288:27)
at fullyReadBody (node:internal/deps/undici/undici:2724:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async consumeBody (node:internal/deps/undici/undici:4297:7)
at async request (file:///D:/katheryne/cf/cloudflare-gateway-pihole-scripts-main/lib/helpers.js:107:16)
at async createZeroTrustListsOneByOne (file:///D:/katheryne/cf/cloudflare-gateway-pihole-scripts-main/lib/api.js:48:7)
at async file:///D:/katheryne/cf/cloudflare-gateway-pihole-scripts-main/cf_list_create.js:141:5