# Hubspot CLI - Error when trying to fetch files

**URL:** <https://community.hubspot.com/t/hubspot-cli-error-when-trying-to-fetch-files/54148>\
**Category:** CMS Development\
**Tags:** local-development\
**Created:** [March 31, 2022, 6:50am UTC](https://community.hubspot.com/t/hubspot-cli-error-when-trying-to-fetch-files/54148 "2022-03-31T06:50:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MagicMariano](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@MagicMariano](https://community.hubspot.com/u/MagicMariano)\
**Post date:** [March 31, 2022, 6:50am UTC](https://community.hubspot.com/t/hubspot-cli-error-when-trying-to-fetch-files/54148/1 "2022-03-31T06:50:04Z")

</div>

Hello everyone.

I’m trying to fetch some directories from different accounts and I’m getting the same error on all of them.

This is the command: ‘hs fetch Directory Directory’

‘The request for “Directory/filename” in account XXXXXX failed due to a client error.’

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/4/0463bbfdd8ebf92c99974e6e63d5c555bd3a3c1a.png)

Seems that it only happen with files and not directories.

I tried to reinstall Hubspot CLI, upgrade it to the last version (3.0.11), delete the account configuration, reset my IDE and computer… and nothing changes.

I also tried npm 8.5.0 (LTS) and npm 8.5.5 (lastest one) and still didn’t work.

I’m using macOS Monterey version 12.2.1, chip Apple M1.

Please I need an answer as soon as posible.

---

<div class="post-metadata">

**Author:** ![TTimes](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ttimes/32/193891_2.png) [@TTimes](https://community.hubspot.com/u/TTimes)\
**Post date:** [March 31, 2022, 7:36am UTC](https://community.hubspot.com/t/hubspot-cli-error-when-trying-to-fetch-files/54148/2 "2022-03-31T07:36:57Z")

</div>

I have the exact same issue. Got someone in the sales chat to flag it internally as well. Seems it was not only me having the issue then.  
I also updated to the lastest version of the CLI through npm but to no avail.  
Watcher seems to work as intended still though

---

<div class="post-metadata">

**Author:** ![anthonypizzurro](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anthonypizzurro/32/44503_2.png) [@anthonypizzurro](https://community.hubspot.com/u/anthonypizzurro)\
**Post date:** [March 31, 2022, 10:46am UTC](https://community.hubspot.com/t/hubspot-cli-error-when-trying-to-fetch-files/54148/3 "2022-03-31T10:46:00Z")

</div>

Thank you for reporting this. We found an issue preventing fetch from working properly which has been fixed. **hs fetch** should now be working properly.

---

<div class="post-metadata">

**Author:** ![MagicMariano](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@MagicMariano](https://community.hubspot.com/u/MagicMariano)\
**Post date:** [March 31, 2022, 11:02am UTC](https://community.hubspot.com/t/hubspot-cli-error-when-trying-to-fetch-files/54148/4 "2022-03-31T11:02:16Z")

</div>

Thank you so much! Now it’s working. Apreciate.

---

<div class="post-metadata">

**Author:** ![TTimes](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ttimes/32/193891_2.png) [@TTimes](https://community.hubspot.com/u/TTimes)\
**Post date:** [March 31, 2022, 11:07am UTC](https://community.hubspot.com/t/hubspot-cli-error-when-trying-to-fetch-files/54148/5 "2022-03-31T11:07:09Z")

</div>

Can confirm it’s working again. Thanks!  
Would you please consider offering an option for non-paying devs to report issues like these to you more swiftly? I had to instruct a sales chat person to flag this internally. She didn’t even know what the CLI was 😉  
I assume you would appreciate information about general issues in a more speedy fashion than just using the forums, no?
