APIs & Integrations

KHand
Member

GitHub / Hubspot Integration errors

SOLVE

Hello, I am trying to intrgrate github and hubpot for my team. The goal is to use github as a source of truth for hubspot. I saw this demo (The Demo without the bin dir) and tried this first. I was successful at getting files to move from github to hubspot. However I get errors when I do my pushes. Specifically, I get a "exit code 2". Not sure what this means. If I can clear the errors I can call this complete. 

 

Everytime I run this workflow it consistently breaks on the meta.jsonn fileEverytime I run this workflow it consistently breaks on the meta.jsonn file

0 Upvotes
1 Accepted solution
paradummy
Solution
Contributor | Partner
Contributor | Partner

GitHub / Hubspot Integration errors

SOLVE

Hi KHand, I had the same problem with a clone of the search-result module when uploading with the CLI. It is caused by the js assets that are linked in the module. I manually downloaded these (template.js & url-search-params.js), put it into my themes folder and updated the meta.json, then it worked:
 

Spoiler
{
  "content_tags" : [ {
    "name" : "SEARCH",
    "source" : "MARKETPLACE"
  }, {
    "name" : "COMPATIBLE_BLOG",
    "source" : "MARKETPLACE"
  }, {
    "name" : "COMPATIBLE_PAGE",
    "source" : "MARKETPLACE"
  } ],
  "global" : false,
  "icon" : "../../../mV0_hubspot/img/icon/edited-search.svg",
  "host_template_types" : [ "PAGE" ],
  "module_id" : 51527122911,
  "css_assets" : [],
  "js_assets" : [ {
    "autoload" : true,
    "path" : "../../js/hubspot/template.js",
    "name" : "template.js"
  }, {
    "autoload" : true,
    "path" : "../../js/hubspot/url-search-params.js",
    "name" : "url-search-params.js"
  } ],
  "label" : "search_results",
  "is_available_for_new_content" : false
}

 

View solution in original post

0 Upvotes
3 Replies 3
paradummy
Solution
Contributor | Partner
Contributor | Partner

GitHub / Hubspot Integration errors

SOLVE

Hi KHand, I had the same problem with a clone of the search-result module when uploading with the CLI. It is caused by the js assets that are linked in the module. I manually downloaded these (template.js & url-search-params.js), put it into my themes folder and updated the meta.json, then it worked:
 

Spoiler
{
  "content_tags" : [ {
    "name" : "SEARCH",
    "source" : "MARKETPLACE"
  }, {
    "name" : "COMPATIBLE_BLOG",
    "source" : "MARKETPLACE"
  }, {
    "name" : "COMPATIBLE_PAGE",
    "source" : "MARKETPLACE"
  } ],
  "global" : false,
  "icon" : "../../../mV0_hubspot/img/icon/edited-search.svg",
  "host_template_types" : [ "PAGE" ],
  "module_id" : 51527122911,
  "css_assets" : [],
  "js_assets" : [ {
    "autoload" : true,
    "path" : "../../js/hubspot/template.js",
    "name" : "template.js"
  }, {
    "autoload" : true,
    "path" : "../../js/hubspot/url-search-params.js",
    "name" : "url-search-params.js"
  } ],
  "label" : "search_results",
  "is_available_for_new_content" : false
}

 

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

GitHub / Hubspot Integration errors

SOLVE

Thanks for sharing, @paradummy 🙌 — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

GitHub / Hubspot Integration errors

SOLVE

Hey, @KHand 👋 Thanks for reaching out. Can you provide a link to the guide or repo you are referencing? Having more information can increase the ability of the community to understand your question. 

 

Thank you! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes