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

The module which create by hs create module will not be uploaded by error #1224

Open
kotto5 opened this issue Oct 27, 2024 · 1 comment
Open

Comments

@kotto5
Copy link

kotto5 commented Oct 27, 2024

Description and Context

npx hs create module module_to_local
npx hs upload module_to_local module_name_to_remote

then

... (Some files will be uploaded)
Uploaded file "/Users/test/Develop/local-dev-tutorial/post_recent.module/fields.json" to "post_recent.module/fields.json"
Uploaded file "/Users/test/Develop/local-dev-tutorial/post_recent.module/module.js" to "post_recent.module/module.js"
Uploaded file "/Users/test/Develop/local-dev-tutorial/post_recent.module/module.html" to "post_recent.module/module.html"
[ERROR] Uploading file "post_recent.module" to "post_recent.module" failed
[ERROR] HubSpotHttpError: The post in account 20616822 was bad. PAGE is not a valid contentType. Must be one of [ANY, LANDING_PAGE, SITE_PAGE, BLOG_POST, BLOG_LISTING, EMAIL, KNOWLEDGE_BASE, QUOTE_TEMPLATE, CUSTOMER_PORTAL, WEB_INTERACTIVE, SMS, SUBSCRIPTION, MEMBERSHIP, CASE_STUDY, CASE_STUDY_LISTING]

This error's reason is setting invalid value for "content_type". The value will be set as "Page", but this value is for previous key ("host_template_type")

I refer this link.
I'm new to hubspot (just two days) so maybe I take mistake.

my hs version is 6.2.1

Steps to reproduce

As above.

Expected behavior

As above.

Screenshots

It is not frontend error. It will be occur in terminal so I think screenshots is not needed.

Who to Notify

@kotto5
Copy link
Author

kotto5 commented Oct 27, 2024

I submit PR for this issue!

I am new to Hubspot so welcome to any points and correction! Thanks for this community.

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

No branches or pull requests

1 participant