I was exploring the restructured XM Cloud Foundation Head repository. The front-end first approach for the development purpose is really good and the docker related artefacts are organized in the local-containers folder.
I started the environment on the local and it went well as exected.
Then I tried to execute the New-EdgeToken.ps1 file to open the Edge GraphQL IDE.
As soon as I provided necessary inputs and executed the script, I got the following error.
Hmm… Something not good with the path.
When I reviewed the file, I realized that after the restructure of the folders for the docker environment, the New-EdgeToken.ps1 file is not able to find the user.json file as seen in the above error.
I updated the New-EdgeToken.ps1, as shown in the below screenshot.
Then I executed the script again and it worked. The script was able to generate the authorization token and then opened the EDGE GraphQL IDE in the browser.
And what! I find another error. The issue is improper URL.
Again I updated the script and then able to successfully make it work.
I’ve raised the following PR with the fixed in the New-EdgeToken.ps1 file and asked for the review.
Thanks for reading the article!