Forum Discussion

miikka's avatar
miikka
Maven
10 years ago

[SDK] Error while creating a project

When running the command of 'li create-project' for creating a local repository and to connect to our development site (15.10), I'm getting this error:

Invalid response from server. Check your server url and version.
/usr/local/lib/node_modules/lithium-sdk/lib/version-check.js:77
            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:94:13)
    at Request._callback (/usr/local/lib/node_modules/lithium-sdk/lib/version-check.js:31:17)
    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)

 

Interestingly enough, this happens on the same computers (Mac and Windows 10) from where I can connect and export plugins from our stage instance without problems now. I'm running the version 1.0.0 of the SDK, node v.4.2.1 and npm v.2.14.7

 

I have created an upload token and am using that when running the create-project command.

26 Replies

  • DougS's avatar
    DougS
    Khoros Oracle
    9 years ago

    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

  • miikka's avatar
    miikka
    Maven
    9 years ago

    Hey DougS,

    any update on the Windows support in relation to the SDK? Any new SDK release coming soon?

     

    Cheers,

    .M

  • GavinD's avatar
    GavinD
    Lithium Alumni (Retired)
    9 years ago

    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_N's avatar
    Jake_N
    Mentor
    8 years ago

    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

  • ChhamaJ's avatar
    ChhamaJ
    Khoros Staff
    8 years ago

    Hi Jake_N 

     

    We do not allow SDK to be used on non-https sites, and ideally the stage site should be on https. Do you mind creating a support ticket and ask them to turn on ssl for you since it is required for SDK?

     

    Thanks,
    Chhama