Skip to content

Commit 886a128

Browse files
committed
Fixed error when reading error response streams in node environments
1 parent 9840109 commit 886a128

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openeo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ class Connection {
633633
});
634634
case 'stream':
635635
return new Promise((_, reject) => {
636-
var chunks = "";
636+
var chunks = [];
637637
error.response.data.on("data", chunk => chunks.push(chunk));
638638
readStream.on("error", () => reject(error));
639639
readStream.on("end", () => reject(JSON.parse(Buffer.concat(chunks).toString())));

tests/earthengine.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const waitForExpect = require("wait-for-expect");
44
jest.setTimeout(60000); // Give Google some time to process data
55

66
describe('With earth-engine-driver', () => {
7-
const TESTBACKEND = 'http://127.0.0.1:8080';
7+
const TESTBACKEND = 'https://earthengine.openeo.org';
88
const TESTBACKENDDIRECT = TESTBACKEND + '/v0.4';
99
const TESTUSERNAME = 'group5';
1010
const TESTPASSWORD = 'test123';

0 commit comments

Comments
 (0)