Skip to content

Cannot read properties of undefined (reading 'id') when the app is not installed #77

@ari-becker

Description

@ari-becker

Environment

N/A

Steps to Reproduce

  1. Create an app, produce a private key
  2. Forget to install it
  3. Run a workflow that uses this step

Expected Result

An error message stating that no installations were found.

Actual Result

image

The error occurs because

let installationId = installations.data[0].id;
presumes that there is at least one installation in the returned array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    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