Hi all — I’m working through the week 3 React Card and stuck on the CLI deployment step.
I’m using a private app with a personal access key. My hubspot.config.yml is configured like this:
defaultPortal: devBootcamp
portals:
- name: devBootcamp
portalId: 143723445
authType: personalaccesskey
accessToken: pat-...
accountType: STANDARD
env: prod
But when I run hs project dev, I consistently get:
[ERROR] The post in account 143723445 was unauthorized. Failed to sign refresh token because refresh token was malformed and could not be decoded.
I’ve confirmed the token is valid and associated with the correct portal. I also can’t find scopes like crm.cards.read or crm.cards.write in the private or public app settings.
What I’ve done so far (Private App path):
1. Created a private app in my HubSpot Developer Account.
2. Copied the personal access key (starts with pat-eu1-...) from the private app.
3. Initialized my CLI project using hs init inside the 02.advanced_version/RentalCars folder.
4. Configured my hubspot.config.yml as per the above.
5. Verified account listing with hs accounts list, which correctly shows:
Name Account ID Auth Type
devBootcamp 143723445 personalaccesskey
6. Tried to run hs project dev, but repeatedly get that error.
7. Also tried:
• Logging out and re-running hs init.
• Regenerating the personal access key.
• Confirming I’m in the correct project directory with the right hubspot.config.yml.
8. Noticed that CRM card scopes like crm.cards.read or crm.cards.write are not available when creating or editing either private or public apps.
Any ideas what I’m missing? Happy to share more screenshots if needed — thanks in advance!