Forum Discussion

mahesh_revanwar's avatar
10 years ago

[SDK] Lithium-Klout SDK : error while uploading plugin

Hi,

I new to Lithium-Klout SDK. I am trying to upload plugin using li submit-plugin It gives me error.

 

Bellow is the log generated in Terminal:

comity-plugin1]# li submit-plugin
[22:30:55] Loaded gulp tasks in: 229 ms
[22:30:55] Using gulpfile /home/Mahesh/Lithium-KloutSDK/comity/PluginPOC1/comity-plugin1/gulpfile.js
[22:30:55] Starting 'clean-tmp'...
[22:30:55] Starting 'clean-plugin'...
[22:30:55] Starting 'clean-plugin-zip'...
[22:30:55] Finished 'clean-tmp' after 41 ms
[22:30:55] Finished 'clean-plugin-zip' after 7.73 ms
[22:30:55] Finished 'clean-plugin' after 27 ms
[22:30:55] Starting 'clean'...
[22:30:55] Finished 'clean' after 9.94 μs
[22:30:55] Starting 'plugin-init'...
[22:30:55] Finished 'plugin-init' after 33 ms
[22:30:55] Starting 'plugin-res'...
[22:30:55] Starting 'plugin-web'...
[22:30:55] Finished 'plugin-res' after 27 ms
[22:30:55] Finished 'plugin-web' after 25 ms
[22:30:55] Starting 'plugin-build'...
[22:30:55] Finished 'plugin-build' after 13 μs
[22:30:55] Starting 'plugin-verify'...
[22:30:55] Tested 0 tests, 0 passes, 0 failures: PASS
[22:30:55] Tested 12 tests, 12 passes, 0 failures: PASS
[22:30:55] Tested 13 tests, 13 passes, 0 failures: PASS
[22:30:55] Finished 'plugin-verify' after 79 ms
[22:30:55] Starting 'plugin-ready'...
[22:30:55] Done compiling plugin: /home/Mahesh/Lithium-KloutSDK/comity/PluginPOC1/comity-plugin1/plugin
[22:30:55] Finished 'plugin-ready' after 312 μs
[22:30:55] Starting 'plugin-upload'...
? Would you like to upload plugin to server? Yes
[22:30:58] Uploading plugin

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: socket hang up
    at createHangUpError (http.js:1477:15)
    at CleartextStream.socketCloseListener (http.js:1527:23)
    at CleartextStream.emit (events.js:117:20)
    at tls.js:694:10
    at process._tickCallback (node.js:442:13)

 

 

Plesae help me on this error.

Regards,

Mahesh Revanwar

6 Replies

  • NicoB's avatar
    NicoB
    Lithium Alumni (Retired)
    10 years ago

    Hi mahesh_revanwar,

    I'm glad you started working with Lithium-Klout SDK

    Regarding your issue:

    - Did you generate an SDK token and pasted the token in the server.conf.json file?

    - Can you doulbe check the serverUrl setting in server.conf.json matches your community URL?

     

    Thanks,

     

    Nico

  • Hi NicoB,

     

    I have checked the server.conf.json file. It has correct details communityURL and Access Token.

     

    Regards,

    Mahesh Revanwar

  • SuzieH's avatar
    SuzieH
    Khoros Alumni (Retired)
    10 years ago

    Hi mahesh_revanwar

    It sounds like you're starting to get some help resolving your issues. The engineering team is also looking into this. In the future, your post will stand out more against the noise of the entire Developer Forum traffic if you post to the Current Betas board instead.  Just preface your message subject with [SDK].

     

     

  • Hi NicoB,

     

    I have also tried using li submit-plugin --dryrun.

    It gives me the same error.

    Please find bellow the responce for li submit-plugin --dryrun command.

     

    comity-plugin1]# li submit-plugin --dryrun
    [21:32:48] Loaded gulp tasks in: 235 ms
    [21:32:48] Using gulpfile /home/Mahesh/Lithium-KloutSDK/comity/PluginPOC1/comity-plugin1/gulpfile.js
    [21:32:48] Starting 'clean-tmp'...
    [21:32:48] Starting 'clean-plugin'...
    [21:32:48] Starting 'clean-plugin-zip'...
    [21:32:48] Finished 'clean-tmp' after 41 ms
    [21:32:48] Finished 'clean-plugin-zip' after 7.74 ms
    [21:32:48] Finished 'clean-plugin' after 26 ms
    [21:32:48] Starting 'clean'...
    [21:32:48] Finished 'clean' after 12 μs
    [21:32:48] Starting 'plugin-init'...
    [21:32:49] Finished 'plugin-init' after 33 ms
    [21:32:49] Starting 'plugin-res'...
    [21:32:49] Starting 'plugin-web'...
    [21:32:49] Finished 'plugin-res' after 69 ms
    [21:32:49] Finished 'plugin-web' after 65 ms
    [21:32:49] Starting 'plugin-build'...
    [21:32:49] Finished 'plugin-build' after 36 μs
    [21:32:49] Starting 'plugin-verify'...
    [21:32:49] Tested 0 tests, 0 passes, 0 failures: PASS
    [21:32:49] Tested 12 tests, 12 passes, 0 failures: PASS
    [21:32:49] Tested 13 tests, 13 passes, 0 failures: PASS
    [21:32:49] Finished 'plugin-verify' after 202 ms
    [21:32:49] Starting 'plugin-ready'...
    [21:32:49] Done compiling plugin: /home/Mahesh/Lithium-KloutSDK/comity/PluginPOC1/comity-plugin1/plugin
    [21:32:49] Finished 'plugin-ready' after 917 μs
    [21:32:49] Starting 'plugin-upload'...
    ? Would you like to upload plugin to server? Yes
    [21:32:52] Uploading plugin

    events.js:72
    throw er; // Unhandled 'error' event
    ^
    Error: socket hang up
    at createHangUpError (http.js:1477:15)
    at CleartextStream.socketCloseListener (http.js:1527:23)
    at CleartextStream.emit (events.js:117:20)
    at tls.js:694:10
    at process._tickCallback (node.js:442:13)

     

     

    server.conf.json file for your reference : 

     

    {
    "serverUrl": "http://{community-name}.lithium.com/",
    "pluginToken": "{token-value}",
    "pluginUploadProtocol": "https",
    "allowStudioOverrides": true,
    "strictMode": false,
    "dryRun": true
    }