Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with node 0.10 #588

Open
galniv opened this issue Apr 23, 2013 · 4 comments
Open

Does not work with node 0.10 #588

galniv opened this issue Apr 23, 2013 · 4 comments

Comments

@galniv
Copy link

galniv commented Apr 23, 2013

ql.io does not appear to work properly with node 0.10.

Using the latest version of node (0.10.4), I followed the instructions to clone ql.io-template and install/run the stand alone server. The install process completed with a number of warnings:

npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})

When running the app using start.sh, the server started but issued more warnings:

TypeError: Cannot read property 'port' of null
    at Server.<anonymous> (cluster.js:570:30)
    at Server.g (events.js:175:14)
    at Server.EventEmitter.emit (events.js:117:20)
    at net.js:1034:10
    at process._tickCallback (node.js:415:13)
error: TypeError: Cannot read property 'port' of null
    at Server.<anonymous> (cluster.js:570:30)
    at Server.g (events.js:175:14)
    at Server.EventEmitter.emit (events.js:117:20)
    at net.js:1034:10
    at process._tickCallback (node.js:415:13)
Uncaught error

I then ran a simple script:

create table gravatar
on select get from 'http://www.gravatar.com/{^token}.json'
resultset 'entry' select * from gravatar where token='kinvey'

And received the following response:

{
    "headers": {
        "content-type": "application/json"
    },
    "body": {
        "html": {
            "xmlns": "http://www.w3.org/1999/xhtml",
            "xml:lang": "en",
            "lang": "en",
            "head": {
                "title": "400 - Bad Request"
            },
            "body": {
                "h1": "400 - Bad Request"
            }
        }
    },
    "emitted": true
}

Following the exact same steps with node 0.8.19 (starting from scratch in a clean directory), however, returns the proper response:

{
        "id": "30180231",
        "hash": "a7b9b661d5d4ababcc6d661de43d3f07",
        "requestHash": "kinvey",
        "profileUrl": "http://gravatar.com/kinvey",
        "preferredUsername": "kinvey",
        "thumbnailUrl": "http://0.gravatar.com/avatar/a7b9b661d5d4ababcc6d661de43d3f07",
        "photos": [
            {
                "value": "http://0.gravatar.com/avatar/a7b9b661d5d4ababcc6d661de43d3f07",
                "type": "thumbnail"
            }
        ],
        "name": [ ],
        "displayName": "kinvey",
        "urls": [ ]
}
@galniv galniv closed this as completed Apr 23, 2013
@galniv galniv reopened this Apr 23, 2013
@hochang
Copy link
Member

hochang commented Apr 23, 2013

Thanks for the feedback. This is an known issue. We don't have spent effort on node 0.10 yet, but this is definitely something we will do soon.

From: Gal Niv <[email protected]mailto:[email protected]>
Reply-To: "ql-io/ql.io" <[email protected]mailto:[email protected]>
Date: Tuesday, April 23, 2013 11:39 AM
To: "ql-io/ql.io" <[email protected]mailto:[email protected]>
Subject: [ql.io] Does not work with node 0.10 (#588)

ql.io does not appear to work properly with node 0.10.

Using the latest version of node (0.10.4), I followed the instructions to clone ql.io-template and install/run the stand alone server. The install process completed with a number of warnings:

npm WARN engine [email protected]:[email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]:[email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]:[email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]:[email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]:[email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]:[email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]:[email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]:[email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm WARN engine [email protected]:[email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.4","npm":"1.2.18"})

When running the app using start.sh, the server started but issued more warnings:

TypeError: Cannot read property 'port' of null
at Server. (cluster.js:570:30)
at Server.g (events.js:175:14)
at Server.EventEmitter.emit (events.js:117:20)
at net.js:1034:10
at process._tickCallback (node.js:415:13)
error: TypeError: Cannot read property 'port' of null
at Server. (cluster.js:570:30)
at Server.g (events.js:175:14)
at Server.EventEmitter.emit (events.js:117:20)
at net.js:1034:10
at process._tickCallback (node.js:415:13)
Uncaught error

I then ran a simple script:

create table gravatar
on select get from 'http://www.gravatar.com/{^token}.json'
resultset 'entry' select * from gravatar where token='kinvey'

And received the following response:

{
"headers": {
"content-type": "application/json"
},
"body": {
"html": {
"xmlns": "http://www.w3.org/1999/xhtml",
"xml:lang": "en",
"lang": "en",
"head": {
"title": "400 - Bad Request"
},
"body": {
"h1": "400 - Bad Request"
}
}
},
"emitted": true}

Following the exact same steps with node 0.8.19 (starting from scratch in a clean directory), however, returns the proper response:

{
"id": "30180231",
"hash": "a7b9b661d5d4ababcc6d661de43d3f07",
"requestHash": "kinvey",
"profileUrl": "http://gravatar.com/kinvey",
"preferredUsername": "kinvey",
"thumbnailUrl": "http://0.gravatar.com/avatar/a7b9b661d5d4ababcc6d661de43d3f07",
"photos": [
{
"value": "http://0.gravatar.com/avatar/a7b9b661d5d4ababcc6d661de43d3f07",
"type": "thumbnail"
}
],
"name": [ ],
"displayName": "kinvey",
"urls": [ ]}


Reply to this email directly or view it on GitHubhttps://github.com//issues/588.

@ivanstoyanov
Copy link

Hi, any update?

@palnes
Copy link

palnes commented Aug 29, 2013

I too am in need of a 0.10.x compatible version.

@sourcec0de
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants