Forum Discussion
Hi TariqHussain,
I actually tried both initially but then understood it needs to be https. So for us the issue was ultimately fixed by the backend config change.
The script should give a meaningful error message if somebody puts in an URL with just http, that's maybe something to be included in the coming versions of the SDK. As that's a very simple mistake to make there, especially if copy-pasteing the URL from your browser where you might be using http.
Resurrecting this old topic as I'm now upgraded to SDK v. 1.2.1 on Windows 10 and am getting a new error when creating a project:
C:\Users\miikkaso\Source\Repos\commerce_web_community-responsive>li create-project
? What is your repository name?
? What is your repository name?
Only lower case characters, numbers or hyphens (-) are allowed. plugin
? What is the URL (include port if exists) to the dev/stage site that you will connect to (beginning with "https://")? https://community-stage.skype.com
? Do you have a plugin token (if not press enter)? THE_PLUGIN_TOKEN_WAS_HERE
readline.js:924
throw err;
^
Error: write EINVAL
at exports._errnoException (util.js:874:11)
at WriteStream.Socket._writeGeneric (net.js:675:26)
at WriteStream.Socket._write (net.js:694:8)
at doWrite (_stream_writable.js:292:12)
at writeOrBuffer (_stream_writable.js:278:5)
at WriteStream.Writable.write (_stream_writable.js:207:11)
at WriteStream.Socket.write (net.js:618:40)
at PromptUI.UI.close (C:\Users\miikkaso\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\inquirer\lib\ui\baseUI.js:62:18)
at PromptUI.onCompletion (C:\Users\miikkaso\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\inquirer\lib\ui\prompt.js:66:8)
at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (C:\Users\miikkaso\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\inquirer\node_modules\rx\dist\rx.js:1793:12)
Has anybody seen something similar and if yes, what was the workaround?
DougS, this might be something interesting for you :smileyhappy:
Cheers,
.M
- DougS9 years agoKhoros Oracle
Hi Miikka,
Can you paste in the full output of the running the command (including the command itself)?
Thanks,
-Doug
- miikka9 years agoMavenSure, updated above
- DougS9 years agoKhoros Oracle
I've been googling a bit, trying to find something similar -- no luck so far. I've got a windows laptop on-order from our IT department. As soon as I get that, I'll see if I can reproduce the issue. I'll try some more searches in the meantime.
-Doug
- GavinD9 years agoLithium Alumni (Retired)
miikka just thought I'd answer after having a chat with DougS.
Right now there isn't an SDK release on our immediate roadmap (Windows or otherwise), but it is something we're considering in the future as we plan our work.
We're certainly excited to hear that you're eager for a windows version.
We'll keep you in the loop (and perhaps ask for some input) if/when we take that project on.
Thanks!
- Jake_N8 years agoMentor
Hey everyone!
I am trying to connect to the SDK of the staging website for my company but an getting an error while trying to create a project.
I can't seem to find a https:// url to it at all.
Any help would be appreciated.
:\Users\zhark>li create-project
? What is your repository name?
Only lower case characters, numbers or hyphens (-) are allowed. lithium-myob? What is the URL (include port if exists) to the dev/stage site that you will connect to (beginning with "https://")? http://XXXXXXXXX.XXXX.com
? Do you have a plugin token (if not press enter)? XXXXXXX-XXXX-XXXXX-XXXX-XXXXXXXXX
19:11:20] got an error when trying to make the call:
Error: read ECONNRESET
[19:11:20] Invalid response from server. Check your server url and version.
C:\Users\zhark\AppData\Roaming\npm\node_modules\lithium-sdk\lib\version-check.js:82
throw error;
^Error: Invalid response from server. Check your server url and version.
at parseResponse (C:\Users\zhark\AppData\Roaming\npm\node_modules\lithium-sdk\lib\version-check.js:91:7)
at Request._callback (C:\Users\zhark\AppData\Roaming\npm\node_modules\lithium-sdk\lib\version-check.js:32:9)
at self.callback (C:\Users\zhark\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\request\request.js:199:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at ClientRequest.self.clientErrorHandler (C:\Users\zhark\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\request\request.js:343:10)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:310:9)
at emitOne (events.js:96:13)Thanks Heaps,
Jake
Related Content
- 11 months ago
- 2 years ago
- 2 years ago
- 2 years ago