Authentication Issue using Google App Script

Assuming everything else is correct (e.g. you’ve got a “GET” and the Google Apps ref says “get” but that’s probably not the root cause here) then the thing to do is check all this works using another protocol e.g. make a curl request using your api key from the server you’ve registered with CH (to check that the ip / API key itself is OK). I see you’ve got a log to dump the API key itself so check here that you have what you think e.g. don’t have an extra “:” at the end here etc. There’s a good number of threads here showing people’s working tracking issues in their code in various languages / scripts / packages e.g.:

https://forum.aws.chdev.org/t/getting-invalid-authorization/41