SumoLogic / sumologic-gsuitealertcenter

Collection for G Suite Alert Center
Apache License 2.0
2 stars 5 forks source link

Customer id could not be inferred #11

Open sam-skinner-notarize opened 3 years ago

sam-skinner-notarize commented 3 years ago

Hey -- I'm seeing the following error when trying to run the script manually to prove it out:

Traceback (most recent call last): File "/home/ec2-user/.local/lib/python3.7/site-packages/sumogsuitealertscollector/main.py", line 186, in main ns.run() File "/home/ec2-user/.local/lib/python3.7/site-packages/sumogsuitealertscollector/main.py", line 157, in run task_params = self.build_task_params() File "/home/ec2-user/.local/lib/python3.7/site-packages/sumogsuitealertscollector/main.py", line 147, in build_task_params obj = self.set_new_end_epoch_time(alert_type, self.DEFAULT_START_TIME_EPOCH) File "/home/ec2-user/.local/lib/python3.7/site-packages/sumogsuitealertscollector/main.py", line 81, in set_new_end_epoch_time response = self.alertcli.alerts().list(*params).execute() File "/home/ec2-user/.local/lib/python3.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper return wrapped(args, **kwargs) File "/home/ec2-user/.local/lib/python3.7/site-packages/googleapiclient/http.py", line 851, in execute raise HttpError(resp, content, uri=self.uri) googleapiclient.errors.HttpError: <HttpError 400 when requesting https://alertcenter.googleapis.com/v1beta1/alerts?pageSize=1&filter=createTime+%3E%3D+%222021-09-22T13%3A45%3A54.518611Z%22+AND+createTime+%3C%3D+%222021-09-23T13%3A43%3A55.025490Z%22+AND+type+%3D+%22Customer+takeout+initiated%22&orderBy=create_time+desc&alt=json returned "customer id could not be inferred from the request or caller identity.">

I can't see where to add the customer id anywhere. Any ideas? Did I set something up wrong on the google side?