Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix github download logic to accept arrays #81

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

brandenrodgers
Copy link
Contributor

Description and Context

This fixes this error:
[ERROR] A Error has occurred. TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Array

It would get thrown when attempting to download a module using hs create module. The issue happens when it gets to fields.json, which is an array.

I need this for: HubSpot/hubspot-cli#977

Screenshots

TODO

Who to Notify

@brandenrodgers brandenrodgers merged commit 0bd2891 into main Jan 17, 2024
1 check passed
@brandenrodgers brandenrodgers deleted the br-fix-github-fetch-content branch January 17, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants