CMS Development

SBradley94
Member

Can't create first Projects and UI extensions project

SOLVE

I'm trying to get setup with my first Projects and UI extensions project but I am stuck in a permissions loop that I can't get out of.

I have a dev account which then I have created 2 test accounts under. I have requested to join the program and it has been accepted. 

However when i try to upload a new project I run into the error:

[ERROR] Couldn't execute the request because the access key for abcd-site [dev account] (242227117) is missing required scopes. To update scopes, run `hs auth`. Then deactivate the existing key and generate a new one that includes the missing scopes.

The only scopes that I can add to an access key on that account are:

  • developer.test_accounts.read
  • developer.test_accounts.write
  • files


I have tried to create a couple of dev/test accounts under the main account and they do appear to have all the scopes necessary as there are lots of them but it won't let me run the hs project dev command without complaining the main account doesn't have the scopes.

 

Any advice or support is greatly appreciated. I'm completely stuck and haven't even gotten passed creating a project! lol

 

0 Upvotes
1 Accepted solution
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

Can't create first Projects and UI extensions project

SOLVE

Hey @SBradley94

for my knowledge UIEs can't be created in the app-test account as it is purely for apps(private and public).

This means, you got to run 'hs auth' with one of the created ones. 

Visualization:
- my-app-dev-acc (app test account; no need to run 'hs auth' unless you're creating a private/public app)
- - my-test-account-1(cms-sandbox created from within the my-app-dev-acc; run hs-auth here to create UIE)
- - my-test-account-2(cms-sandbox created from within the my-app-dev-acc; run hs-auth here to create UIE)


I've recently run through setting up new portals for creating UIEs... Here are the steps I've done:

  1. Created a new app portal (from developers.hubspot.com)
  2. Created a test-account(cms-sandbox) from within the app portal
  3. Logged into the test-account
  4. Opened a Terminal in VSCode
  5. Executed 'hs auth'
  6. Selected the test-account(not app portal)
  7. Selected all scopes
  8. Copied the key
  9. Pasted the key in VSCode
  10. Executed 'hs project create'

 

Hope this helps

best, 
Anton

Anton Bujanowski Signature

View solution in original post

0 Upvotes
4 Replies 4
SBradley94
Member

Can't create first Projects and UI extensions project

SOLVE

This is the message I get when I try to run: hs project upload 

hs project upload
? [--forceCreate] The project test1 does not exist in developer-test-account-1 [test account] (242342175). Would you like to create it? Yes
[SUCCESS] New project test1 successfully created in developer-test-account-1 [test account] (242342175).
✖ Failed to upload test1 project files to developer-test-account-1 [test account] (242342175)
[ERROR] Couldn't create a React extension with your file `/app/extensions/example-card.json` because your portal (`242342175`) doesn't have access to this beta. Make sure you are uploading to the correct developer account. To learn more and sign up for the public apps beta, visit https://app.hubspot.com/l/whats-new/all?update=13937343

It's saying my portal doesn't have access to the best but when I click the link it only works if use my main dev account. If I select the 242342175 account then it says "Product update was not found".

I have signed up to the public apps beta in my main account so I'm not sure what else I can do? 

Is there a way to reach the developers of this public beta. It seems to me that its not working as expected at a critical point when trying to get started and this feedback would be useful for them to improve it. 


0 Upvotes
Anton
Solution
Thought Leader | Partner
Thought Leader | Partner

Can't create first Projects and UI extensions project

SOLVE

Hey @SBradley94

for my knowledge UIEs can't be created in the app-test account as it is purely for apps(private and public).

This means, you got to run 'hs auth' with one of the created ones. 

Visualization:
- my-app-dev-acc (app test account; no need to run 'hs auth' unless you're creating a private/public app)
- - my-test-account-1(cms-sandbox created from within the my-app-dev-acc; run hs-auth here to create UIE)
- - my-test-account-2(cms-sandbox created from within the my-app-dev-acc; run hs-auth here to create UIE)


I've recently run through setting up new portals for creating UIEs... Here are the steps I've done:

  1. Created a new app portal (from developers.hubspot.com)
  2. Created a test-account(cms-sandbox) from within the app portal
  3. Logged into the test-account
  4. Opened a Terminal in VSCode
  5. Executed 'hs auth'
  6. Selected the test-account(not app portal)
  7. Selected all scopes
  8. Copied the key
  9. Pasted the key in VSCode
  10. Executed 'hs project create'

 

Hope this helps

best, 
Anton

Anton Bujanowski Signature
0 Upvotes
SBradley94
Member

Can't create first Projects and UI extensions project

SOLVE

It is actually still a problem. I can't run hs project dev as it says:

--------------------------------------------------
Local development of public apps is only supported in developer test accounts.
--------------------------------------------------

? [--account] Choose a test account under abcd [dev account] (242227117) to test with: Developer test acco
unt 1 [test account] (242228336)
[ERROR] Couldn't execute the request because the access key for abcd [dev account] (242227117) is missing required scopes. To update scopes, run `hs auth`. Then deactivate the existing key and generate a new one that includes the missing scopes.

As mentioned above I've tried to follow all the steps and give all the scopes to the key but this error wont let me continue. 😞

0 Upvotes
SBradley94
Member

Can't create first Projects and UI extensions project

SOLVE

Thanks Anton for responding. Maybe I was just getting caught up in some unhelpful error messages. I did the steps you suggested as I had done before and it worked without issue. Not sure why or what I was doing wrong but it seems all good now.

Thanks again for your support. 

0 Upvotes