A TypeError has occurred - hs auth process

I am trying to add a new portal to my config file and started getting the following error when entering the personal access key:

[ERROR] A TypeError has occurred. Cannot read properties of null (reading ‘replace’)

Using VS Code for my local dev and here are my current versions:

CLI - 5.2.0

Node - 20.14.0

I have never had any issues using the ‘hs auth’ process before. Not sure why this error has suddently appeared. Any recommendations for troubleshooting would be greatly appreciated.

Thanks,

Terry McMillan

Hi @tmcmillan99 :waving_hand: I hope you’ve been well. Let’s invite some community members to the converstaion — hey @Jnix284 @piersg @Teun have you run into this or a similar issue before?

Thank you for taking a look! — Jaycee

@Jaycee_Lewis Thanks for reaching out to others. Not sure of a work around and this prevents me from uploading a theme to the portal which is critical task for me right now. It’s a bummer that we can’t upload a theme into design manager. Having to rely on the local dev cli is a single point of success/failure. Having said that, this is the first time I’ve had an issue with cli but always good to have mutilple options for a task solution.

Thanks,

Terry

Quick Update-

hs auth - still produces the error so new portals can’t be added to the config file

hs upload & hs fetch - still work correctly

Workaround - Since hs upload still works, I uploaded the theme to an existing portal then copied the theme to the new portals (custom built theme…not from the marketplace)

When I have time this weekend, I am going to uninstall VS Code and install everything fresh to see if that resolves the error.

Thanks,

Terry

Hi Terry,

Are you still facing this issue? I just had the same and it got my gears grinding.

Turns out that the account I was trying to authenticate had no account name, which for me was causing this issue. After setting the account name I could authenticate just fine.

I hope this helps you or anyone else in the future!

Best,

Anthony