Skip to content

Fix googleapis 404 error in classFeedbackAutomation #49

@robz

Description

@robz

The classFeedbackAutomation script frequently throws an exception

Logs: https://us-east-2.console.aws.amazon.com/cloudwatch/home?region=us-east-2#logsV2:log-groups/log-group/$252Fadmin-bot$252Fclass-feedback/log-events/i-08b63179ddf133482$3Fstart$3D-1209600000

Example trace:

2025-12-08T09:09:04.000-06:00
Traceback (most recent call last):
  File "/home/ec2-user/NeonIntegrations/classFeedbackAutomation.py", line 202, in <module>
    surveyLink = getSurveyLink(eventName)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ec2-user/NeonIntegrations/classFeedbackAutomation.py", line 152, in getSurveyLink
    .execute()
     ^^^^^^^^^
  File "/home/ec2-user/.local/lib/python3.12/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
    return wrapped(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ec2-user/.local/lib/python3.12/site-packages/googleapiclient/http.py", line 938, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://www.googleapis.com/drive/v3/files/1zCmHpktgblR8auKWMO6eNdTBt2frGj3Q6ExFTP9rHKI/copy?supportsAllDrives=true&alt=json returned "File not found: 1zCmHpktgblR8auKWMO6eNdTBt2frGj3Q6ExFTP9rHKI.". Details: "[{'message': 'File not found: 1zCmHpktgblR8auKWMO6eNdTBt2frGj3Q6ExFTP9rHKI.', 'domain': 'global', 'reason': 'notFound', 'location': 'fileId', 'locationType': 'parameter'}]">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions