Skip to content

The timestamp parameter is not optional #249

@timmattison

Description

@timmattison

This code says that the timestamp value is optional but if I leave it out it always fails with the errors below.

The Greengrass model code is here -

self.timestamp = timestamp # type: typing.Optional[datetime.datetime]

The logs are:

2021-11-15T23:02:03.737Z [WARN] (Copier) com.greengrass.ProcessApiStream: stderr. operation.get_response().result(config_utils.TIMEOUT). {scriptName=services.com.greengrass.ProcessApiStream.lifecycle.Run.Script, serviceName=com.greengrass.ProcessApiStream, currentState=RUNNING}
2021-11-15T23:02:03.737Z [WARN] (Copier) com.greengrass.ProcessApiStream: stderr. File "/usr/lib/python3.6/concurrent/futures/_base.py", line 432, in result. {scriptName=services.com.greengrass.ProcessApiStream.lifecycle.Run.Script, serviceName=com.greengrass.ProcessApiStream, currentState=RUNNING}
2021-11-15T23:02:03.737Z [WARN] (Copier) com.greengrass.ProcessApiStream: stderr. return self.__get_result(). {scriptName=services.com.greengrass.ProcessApiStream.lifecycle.Run.Script, serviceName=com.greengrass.ProcessApiStream, currentState=RUNNING}
2021-11-15T23:02:03.737Z [WARN] (Copier) com.greengrass.ProcessApiStream: stderr. File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result. {scriptName=services.com.greengrass.ProcessApiStream.lifecycle.Run.Script, serviceName=com.greengrass.ProcessApiStream, currentState=RUNNING}
2021-11-15T23:02:03.737Z [WARN] (Copier) com.greengrass.ProcessApiStream: stderr. raise self._exception. {scriptName=services.com.greengrass.ProcessApiStream.lifecycle.Run.Script, serviceName=com.greengrass.ProcessApiStream, currentState=RUNNING}
2021-11-15T23:02:03.737Z [WARN] (Copier) com.greengrass.ProcessApiStream: stderr. File "/home/ubuntu/.local/lib/python3.6/site-packages/awsiot/eventstreamrpc.py", line 723, in _on_continuation_message. {scriptName=services.com.greengrass.ProcessApiStream.lifecycle.Run.Script, serviceName=com.greengrass.ProcessApiStream, currentState=RUNNING}
2021-11-15T23:02:03.737Z [WARN] (Copier) com.greengrass.ProcessApiStream: stderr. raise shape. {scriptName=services.com.greengrass.ProcessApiStream.lifecycle.Run.Script, serviceName=com.greengrass.ProcessApiStream, currentState=RUNNING}
2021-11-15T23:02:03.737Z [WARN] (Copier) com.greengrass.ProcessApiStream: stderr. awsiot.greengrasscoreipc.model.InvalidArgumentsError. {scriptName=services.com.greengrass.ProcessApiStream.lifecycle.Run.Script, serviceName=com.greengrass.ProcessApiStream, currentState=RUNNING}
2021-11-15T23:02:03.761Z [INFO] (Copier) com.greengrass.ProcessApiStream: Run script exited. {exitCode=1, serviceName=com.greengrass.ProcessApiStream, currentState=RUNNING}

If I specify a timestamp it works as expected.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p2This is a standard priority issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions