My VSF next commerce tools installation does not work after changing the connection strings to my own CT project
Closed this issue · 4 comments
Hi
My VSF next commerce tools installation does not work after changing the connection strings to my own CT project. following are the steps to reproduce
- I setup VSF Next for CT
- I created an API client in my mc.commercetools.com and did select the appropriate project scopes
- I changed my connection strings in /packages/commercetools/theme/plugins/commercetools-config.js as per following screen shot
- but no luck and it does give me an error as per following screenshots
can anybody please let me know how can i successfully connect it to my own CT project?
Please note: I am using the next branch in main VSF repo instead of separate next repo (that i am posting this issue on) to setup my project.
Thank you
First of all, I think, there is wrong URI: it should be something like https://api.commercetools.com/[project]/graphql
, the one you used is probably for rest API. Also, authHost
should be set tohttps://auth.sphere.io
. Please make sure if you set the right permissions in your MC, and if it still doesn't work, please text me on community slack
Hi @andrze Thank you for following that for me, but it did not work though error did get changed i.e as per following screenshot
Hey, look at the docs: https://docs.commercetools.com/graphql-api it says:
You can access the GraphQL endpoint with following URL:
https://api.{region}.{cloudProvider}.commercetools.com/{projectKey}/graphql
so you have to add /nestosh/graphql
and the end of API uri
Hi @andrzejewsky It did work after changing my graphQL end point, Thank you