Skip to content

Receiving Error AttributeError: 'dict' object has no attribute 'get_remaining_time_in_millis' #76

@jwtdrjj

Description

@jwtdrjj

As I run my custom resource, it is successful but I receive a failure any way with

[ERROR] 2024-05-01T14:16:41.163Z 9407e51d-128f-4e7e-8295-24ef4980e717 'dict' object has no attribute 'get_remaining_time_in_millis'
Traceback (most recent call last):
File "/var/task/crhelper/resource_helper.py", line 76, in call
if not self._crhelper_init(event, context):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/task/crhelper/resource_helper.py", line 137, in _crhelper_init
self._set_timeout()
File "/var/task/crhelper/resource_helper.py", line 215, in _set_timeout
self._timer = threading.Timer((self._context.get_remaining_time_in_millis() / 1000.00) - 0.5,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'get_remaining_time_in_millis'

I am using python 3.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions