Forum Discussion
Hi miikka
We released a new version of sdk that should fix this issue. Can you please retry?
npm ls -g lithium-sdk --depth=0 /usr/local/lib └── lithium-sdk@1.0.2
I was just able to successfully create a project without being on vpn.
li create-project ? What is your repository name? Only lower case characters, numbers or hyphens (-) are allowed. testskypec2 ? What is the URL (include port if exists) to the dev/stage site that you will connect to (beginning with "https://")? https://ktjwy84477.stage.lithium.com ? Do you have a plugin token (if not press enter)? xx [13:58:24] Starting: npm link lithium-sdk /Users/<snipped>/sdk-testing/testskypec2/node_modules/lithium-sdk -> /usr/local/lib/node_modules/lithium-sdk [13:58:24] Finished: npm link lithium-sdk [13:58:24] Starting: npm link gulp /Users/megha.meshram/sdk-testing/testskypec2/node_modules/gulp -> /usr/local/lib/node_modules/gulp [13:58:25] Finished: npm link gulp [13:58:25] Starting: npm install npm WARN package.json testskypec2@ No license field. [13:58:32] Finished: npm install [13:58:32] Created testskypec2
Hi MeghaM,
I just updated to 1.0.2 on Mac:
npm ls -g lithium-sdk --depth=0 /usr/local/lib └── lithium-sdk@1.0.2
But I still seem to be getting the same error when creating a project against the responsive dev site:
[12:22:15] got an error when trying to make the call: null [12:22:15] Invalid response from server. Check your server url and version. /usr/local/lib/node_modules/lithium-sdk/lib/version-check.js:79 throw error; ^ Error: Invalid response from server. Check your server url and version. at parseResponse (/usr/local/lib/node_modules/lithium-sdk/lib/version-check.js:96:13) at Request._callback (/usr/local/lib/node_modules/lithium-sdk/lib/version-check.js:33:15) at Request.self.callback (/usr/local/lib/node_modules/lithium-sdk/node_modules/request/request.js:199:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request.<anonymous> (/usr/local/lib/node_modules/lithium-sdk/node_modules/request/request.js:1160:14) at emitOne (events.js:82:20) at Request.emit (events.js:169:7) at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/lithium-sdk/node_modules/request/request.js:1111:12) at emitNone (events.js:72:20)
I assume that the 'null' above means no connection to the server could be established and that the response is empty?
Cheers,
.M
- miikka10 years agoMaven
And just add to this, I upgraded to 1.0.2 on Windows 10 as well and still see the same error there.
[13:59:24] got an error when trying to make the call: null [13:59:24] Invalid response from server. Check your server url and version. C:\Users\miikkaso\AppData\Roaming\npm\node_modules\lithium-sdk\lib\version-check.js:79 throw error; ^ Error: Invalid response from server. Check your server url and version. at parseResponse (C:\Users\miikkaso\AppData\Roaming\npm\node_modules\lithium-sdk\lib\version-check.js:96:13) at Request._callback (C:\Users\miikkaso\AppData\Roaming\npm\node_modules\lithium-sdk\lib\version-check.js:33:15) at Request.self.callback (C:\Users\miikkaso\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\request\request.js:199:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request.<anonymous> (C:\Users\miikkaso\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\request\request.js:1160:14) at emitOne (events.js:82:20) at Request.emit (events.js:169:7) at IncomingMessage.<anonymous> (C:\Users\miikkaso\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\request\request.js:1111:12) at emitNone (events.js:72:20)
Cheers,
.M
- miikka10 years agoMaven
I tried again this morning without changing anything in the local setup and was positively surprised to see the project creation now working both on Windows and on Mac. And I was also able to export the studio plugin from the responsive dev site. So maybe somebody changed something somewhere but looks like this issue is now resolved.
Thanks for your help! :)
Cheers,
.M
- TariqHussain10 years agoBoss
miikka
it could be the reason you were entering http:// in url rather than https:// . I had the same error. Upgraded to lithium SDK 1.0.2, even after the upgrade I faced the same issue. After some tries I came to know I was using http:// where the command prompt asked me to enter the dev/stage url. So I changed to https:// and was able to create plugin successfully - miikka10 years agoMaven
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.
- miikka9 years agoMaven
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