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

Uncaught exception in some Batch API errors #380

Closed
rafatower opened this issue Feb 13, 2019 · 1 comment · Fixed by #381 or CartoDB/Windshaft-cartodb#1072
Closed

Uncaught exception in some Batch API errors #380

rafatower opened this issue Feb 13, 2019 · 1 comment · Fixed by #381 or CartoDB/Windshaft-cartodb#1072
Assignees

Comments

@rafatower
Copy link
Contributor

Uncaught exception: TypeError: response.match is not a function
    at batchErrorMessage (/home/rtorre/src/Windshaft-cartodb/node_modules/camshaft/lib/postgresql/batch-client.js:25:49)
    at Request._callback (/home/rtorre/src/Windshaft-cartodb/node_modules/camshaft/lib/postgresql/batch-client.js:54:39)
    at Request.self.callback (/home/rtorre/src/Windshaft-cartodb/node_modules/camshaft/node_modules/request/request.js:186:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/home/rtorre/src/Windshaft-cartodb/node_modules/camshaft/node_modules/request/request.js:1163:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/home/rtorre/src/Windshaft-cartodb/node_modules/camshaft/node_modules/request/request.js:1085:12)
    at IncomingMessage.g (events.js:291:16)

Related to #378

@rafatower
Copy link
Contributor Author

How I reproduced the issue locally and in prod:

  • Import some dataset. eg: brooklyn_poverty
  • Replace the SELECT * with an equivalent long query (a comment of 16kb):
// file longquery.js

var query = 'SELECT /* ';
for(var i=0; i < (16*1024); ++i) {
    query += 'x';
}
query += '*/ * FROM brooklyn_poverty'

var fs = require('fs');
fs.writeSync(1, query);
fs.fsyncSync(1);
node longquery.js > query.sql
  • create a centroids and on top of it a buffer analysis.

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