Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect PWA Kit Project with my Sandbox instance #141

Closed
s-hafeez opened this issue Sep 28, 2021 · 3 comments
Closed

Unable to connect PWA Kit Project with my Sandbox instance #141

s-hafeez opened this issue Sep 28, 2021 · 3 comments
Assignees

Comments

@s-hafeez
Copy link

I have a created project using command npx pwa-kit-create-app --outputDir <project-name> and then changed the values of clientId, organizationId, shortCode, siteId in app/commerce-api.config.js file according to my sandbox instance. But I am unable to run the project, I have checked Commerce API's on postman and Commerce API's are working fine. I am seeing this error when visit http://localhost:3000/:

Sorry, there is a problem with this page 😔
To continue, go back home.

Go Back Home
Error: Client Authentication failed
at //build/ssr.js:57072:15
at Generator.next ()
at asyncGeneratorStep (//build/ssr.js:64:24)
at _next (//build/ssr.js:86:9)
at processTicksAndRejections (internal/process/task_queues.js:95:5)

Can anyone help here? I am using "pwa-kit-react-sdk": "1.0.0".

@kevinxh
Copy link
Collaborator

kevinxh commented Sep 28, 2021

hi @s-hafeez , the reason that you see the error Client Authentication failed is most likely due to SLAS api client not properly configured.

Have you setup your API clients following the steps here?

@vcua-mobify
Copy link
Contributor

Hello @s-hafeez!

There are two places where values for the sandbox instance are defined: commerce-api.config.js and package.json (in the proxtConfigs section of ssrParameters).

Once these are set to your sandbox's values and you are still encountering the error then, as @kevinxh suggested, it is probably due to the SLAS client associated with your API key or the SLAS tenant associated with your sandbox not being configured.

@noahadams noahadams assigned noahadams and vcua-mobify and unassigned noahadams Oct 1, 2021
@vcua-mobify
Copy link
Contributor

Hi @s-hafeez

We haven't heard back from you in a while so we'll be closing this issue. If you continue to encounter issues with your sandbox setup, please file a support ticket at help.salesforce.com and our support team will be able to assist you further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants