-
Error enabling GraphQL IDE with XM Cloud
December 29, 2023 Rodrigo Peplau 0
Recently, I was exploring the GraphQL IDE with XM Cloud. It comes disabled by default, and for security reasons, it’s recommended to keep it disabled in Production environments.
Enabling it is fairly straightforward, as can be seen in this walkthrough. Or so I thought! Yet, as I attempted to navigate the steps, I encountered errors that left me feeling like struggling with supposedly “easy-open” packages.
Reaching the section “Obtain an access token“, more specifically on step 3 when the “curl” command is run, you might see one of the following errors.It always makes me feel stupid when I struggle with “easy-open” packages!
With Windows Command Prompt:
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
With PowerShell 5.1:
Invoke-WebRequest : A positional parameter cannot be found that accepts argument ‘–request’.
At line:1 char:1
+ curl –location –request POST ‘https://auth.sitecorecloud.io/oauth/t …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommandAre easy-open packages really easy to open?
My feelings were correct, and the root cause made me feel stupid: The command only worked well when I ran it in PowerShell 7! It’s not clear if this is a requirement for this walkthrough only. I’ve contacted Sitecore and asked for clarifications, as soon as I get a response I’ll update this article.
To make things a little more confusing, a different walkthrough written by my friend and band partner Sebastian Winter, shows that one of the pre-requisites for using the XM Cloud foundation template is PowerShell 5.1, saying that “PowerShell 7 is not supported at this time”.
Don’t have PowerShell 7?
To find out what version of PowerShell you’re running, simply type $PSVersionTable at the prompt. If you don’t have PowerShell 7 installed yet, you can follow this article for instructions on how to install it.
Categories: Powershell, XM Cloud
Meet MVPinny: the AI-Powered Sitecore Assistant Rodrigo Peplau wins Sitecore Most Valuable Professional award
Proudly 10x Sitecore MVP!
(2016-2025)
Localization
Recent Posts
Recent Comments
- navan on Meet MVPinny: the AI-Powered Sitecore Assistant
- Adriana on Content generation with Sitecore Connect and ChatGPT
- NAVAN on Automatic Sitecore NuGet upgrades with Powershell
- Hedipo S Menezes on Corey Peplau wrote this - WFFM conflict with Unity DI and a lesson on how Sitecore community is so amazing
- Rodrigo Peplau on ERROR [Content Testing]: Cannot find PhantomJS executable at ' (...) /data/tools/phantomjs/phantomjs.exe'. Aborting screenshot generation.
Archives
- March 2025
- January 2025
- June 2024
- April 2024
- February 2024
- December 2023
- November 2023
- August 2023
- July 2023
- January 2023
- February 2022
- December 2021
- November 2021
- March 2021
- July 2020
- February 2020
- September 2019
- July 2019
- April 2019
- March 2019
- December 2018
- February 2018
- January 2018
- November 2017
- September 2017
- August 2017
- July 2017
- March 2017
- February 2017
- November 2016
- September 2016
- August 2016
- July 2016
- April 2016
- November 2015
- September 2015
- July 2015
- April 2015
- March 2015
- February 2015
Categories
- Actions
- Active Directory
- Analytics
- Architecture
- Bug fixing
- CDP/Personalize
- ChatGPT
- Content Edition Experience
- Content Hub
- Continuous Integration
- Dev
- Development
- Environments
- Experience Editor
- Experience Forms
- Front-end
- Hackathon
- Health Check builds
- Helix
- How To
- LDAP
- MVP
- MVP Summit
- MVPinny
- Phantom JS
- Powershell
- QA
- Richtext Editor
- Rules
- Security Provider
- SIF
- Sitecore 9
- Sitecore API
- Sitecore Community
- SItecore Connect
- Sitecore Modules
- Sitecore Rocks
- Sitecore Rule Processor
- Sitecore Symposium
- SPE
- SPE-only Alliance
- SPEAK
- SUG
- Support Ticket
- TDS
- Team City
- Uncategorized
- Upgrades
- Visual Studio
- WFFM
- Workflow
- XConnect
- xDB
- XM Cloud