CMS Development

JamesW42
Participant | Elite Partner
Participant | Elite Partner

Hubspot CLI - I can Upload, but I can't Fetch

SOLVE
When I try run the command "hs fetch" I get the error:

"The request for "./[---]-2022-theme" in account [account-number] was forbidden."

In my testing (screenshot attached) you can see I was able to upload a "test.html" file. However I was unable to Fetch from the same project. 

Hence, I believe I have eliminated permissions/authorisations as the root cause.
 
2022-10-26_17-25.png
0 Upvotes
1 Accepted solution
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Hubspot CLI - I can Upload, but I can't Fetch

SOLVE

@JamesW42 I dont believe relative paths work when fetching from HubSpot. If it's a top level folder just do hs fetch folder-name

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.

View solution in original post

1 Reply 1
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Hubspot CLI - I can Upload, but I can't Fetch

SOLVE

@JamesW42 I dont believe relative paths work when fetching from HubSpot. If it's a top level folder just do hs fetch folder-name

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.