hubspot-cms-vscode icon indicating copy to clipboard operation
hubspot-cms-vscode copied to clipboard

[ERROR] HubSpot assets are unavailable at the moment. Please wait a few minutes and try again.

Open sasha-rp opened this issue 1 year ago • 5 comments

Describe the bug This only happens with some HubSpot portals, but lately it's been happening with a higher and higher frequency. I am completely unable to fetch some themes from design manager via HubSpot CLI.

I've added a --debug error log here with my auth credentials redacted: error.log

The weird thing is that I can fetch individual files, but not an entire theme folder. image

To Reproduce Steps to reproduce the behavior:

  1. Authenticate account in VS Code or Cursor
  2. Try to run the fetch command of a folder (not @hubspot)

Expected behavior All files are downloaded

Screenshots system js — Applied — HubSpot - November 17 2024 at 13 39 26  Cursor

Environment Versions

  • HubSpot VSCode Extension version: [1.3.2]
  • OS: MacOS Sonoma 14.5

sasha-rp avatar Nov 17 '24 19:11 sasha-rp

Can this error be prioritized? This is stopping my team's current development of our HubSpot site.

cskobel0210 avatar Dec 20 '24 18:12 cskobel0210

@cskobel0210

I found a solution by asking in the HubSpot Developer slack. One user said the following:

In my case there were too many files to fetch and it caused timeout error (on the "client" side). You can override default 15s timeout by adding httpTimeout to hubspot.config.yml file. httpTimeout: 60000

Here's what my config looks like: image

The culprit in my case was all the localization/translation files. If you delete them or other any other bloat through the Design Manager, you might be able to fetch the files like normal. Adding the timeout worked right away. You can also try fetching one folder at a time from your theme to see if it works.

Please reply to this thread if it worked for you so we can confirm it as the solution for other people who find this thread in the future.

sasha-rp avatar Dec 20 '24 22:12 sasha-rp

@sasha-rp Thank you! Changing the timeout worked for me. Thank you thank you thank you!

cskobel0210 avatar Dec 30 '24 15:12 cskobel0210

This worked for me too.

chrislacey89 avatar Jan 15 '25 20:01 chrislacey89

This worked for me as well, thank you!

ThomasDelaneyStorj avatar Apr 02 '25 18:04 ThomasDelaneyStorj