-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
hello , i installed rethinkdb with docker in one of my servers Ubuntu 18.04
and i wanted simply to get data from another api with r.http in python with the driver version 2.4.0
and in nodejs 12 with the lastest version of rethinkdb npm pachkage
i get the same error , i tried different versions btw
this is the error im getting with all the headers or the page :
Unhandled rejection ReqlNonExistenceError: Error in HTTP GET of `https://api.github.com/repos/rethinkdb/rethinkdb/stargazers`: unknown error when parsing response headers: HTTP/2 200
and this is my simple nodejs code
r = require('rethinkdb');
var c = null
r.connect({host: 'myhost, port: 28015,password:"mypass"}, function(err, conn) {
//console.log(r.http('myhost',header:"a").run(conn));
r.http('https://api.github.com/repos/rethinkdb/rethinkdb/stargazers',
{ method: 'GET',
header: { 'Content-Type': 'application/json' } })
.run(conn)
});i tested that the connection is working before removing the promisis
and it is the same error in both js and python