Skip to content

🐛 Bug Report: appwrite function get-execution crashes with TypeError #153

@neutrino2211

Description

@neutrino2211

👟 Reproduction steps

When I created a cloud function on Node 22, set it to run on update for database documents and run appwrite functions get-execution to get logs, the output ends with TypeError: Cannot convert undefined or null to object.

Image

The error comes from this specific line, a check for whether the "object" is null seems to be missing.

👍 Expected behavior

It should either log the scheduledAt data or an empty object or null

👎 Actual Behavior

it actually fails with a type error

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

No customised environment, using the appwrite cloud software and the Appwrite SDK

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

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