Hey,
I have recently started working on salesforce commerce cloud. I am trying to Install and Configure SFRA on my Sandbox. This is the trailhead I am following 'https://trailhead.salesforce.com/en/content/learn/modules/b2c-developer-resources-and-tools/b2c-developer-install-config-sfra'.
Issue:
1) When running npm run uploadCartridge I am getting the Error: Unauthorized. What places should I check to see if my permissions are correct? And what are the correct permissions.
2) I am not sure what should be the user and password in dw.json. Will it be my Business Manager user name and password?
I have tried using dwupload but getting the same error there as well.
Logs:
> sfra@5.1.0 uploadCartridge D:\SFCC\SFRA\storefront-reference-architecture
> sgmf-scripts --uploadCartridge app_storefront_base && sgmf-scripts --uploadCartridge modules && sgmf-scripts --uploadCartridge bm_app_storefront_base
{ 'file-upload': false,
'cartridge-upload': false,
'directory-create': false,
'file-delete': false }
[05:34:58] Error: Unauthorized
{ 'file-upload': false,
'cartridge-upload': false,
'directory-create': false,
'file-delete': false }
[05:35:04] Error: Unauthorized
{ 'file-upload': false,
'cartridge-upload': false,
'directory-create': false,
'file-delete': false }
[05:35:11] Error: Unauthorized
Any help will be greatly appreciated. Thanks in advance.
Hi @Christopher Lossa I am experiencing the same issue while building a new cartridge:
I have attached also my package.json file from storefront-reference-architecture github project.
My User roles in BM are:
- Business Manager Administrator
- Business Manager User
Maybe I am using an older version of the sgmf-scripts package?