Skip to content

SyntaxError: Unexpected end of JSON input #6

@eyalev

Description

@eyalev

I installed chromix-too and everything worked for about an hour but now when I run something, e.g:

$ chromix-too focus gmail

I get the following error:


undefined:1
{"path":"chrome.tabs.query","args":[{}],"clientId":"1208377027-2","response":[[{"active":false,"audible":false,"autoDiscardable":true,"discarded":false,"favIconUrl":"https://www.google.co.il/images/branding/product/ico/googleg_lodp.ico","height":990,"highlighted":false,"id":209,"incognito":false,"index":0,"mutedInfo":{"muted":false},"pinned":false,"selected":false,"status":"complete","title":"python click alias - Google Search","url":"https://www.google.co.il/search?espv=2&q=python+click+alias&oq=python+click+alias&gs_l=serp.3..0.7093056.7094207.0.7094648.6.5.0.1.1.0.402.552.0j1j4-1.2.0....0...1c.1.64.serp..3.3.553...0i67k1.fXeBCtS1RDA","width":1855,"windowId":206},{"active":false,"audible":false,"autoDiscardable":true,"discarded":false,"height":990,"highlighted":false,"id":214,"incognito":false,"index":1,"mutedInfo":{"muted":false},"openerTabId":209,"pinned":false,"selected":false,"status":"complete","title":"Utilities — Click Documentation (5.0)","url":"http://click.pocoo.org/5/utils/","widt

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Socket.<anonymous> (/usr/lib/node_modules/chromix-too/chromix-too.js:32:25)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:189:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:551:20)

The server give the following output:

$ chromix-too-server
listening on: /home/eyalev/.chromix-too.sock
Mon Feb 27 2017 14:54:41 GMT+0200 (IST): websocket client connected


events.js:161
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:1023:11)
    at Pipe.onread (net.js:572:26)

Is there a way to fix this?

I'm running on Ubuntu 14.04.

(And thanks for the awesome project!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions