Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

error TypeError: Cannot destructure property 'status' of '(intermediate value)' as it is undefined. #11

@tophermurphy

Description

@tophermurphy

Error is coming up in
strapi-plugin-github-publish/controllers/github-publish.js

Line 52
const { status } = await axios.post(url, data, { headers });

Azure VM
Image: Ubuntu Server 18.04 LTS

Removing the curly braces around status seemed to work via StackOverflow
https://stackoverflow.com/questions/54744949/uncaught-typeerror-cannot-destructure-property-name-of-undefined-or-null#answer-66994361

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