systemapic / pile

PostGIS tile server
0 stars 2 forks source link

POST to v2/tiles/create returns empty error #19

Closed strk closed 8 years ago

strk commented 8 years ago

This POST payload

{"geom_column":"rast","geom_type":"raster","raster_band":"","srid":"","affected_tables":"","interactivity"
:"","attributes":"","access_token":"pk.IUqP3GRWMR2amCYlVKWYCLf4ojg47xcwph2VMgvM","cartocss_version":"2
.0.1","sql":"(SELECT * FROM file_slrakdizblvgullfwftj) as sub","file_id":"file_slrakdizblvgullfwftj"
,"return_model":true,"projectUuid":"project-b4b8737a-e72f-4ee1-b8fc-cbdd77f8e36a","cutColor":false}

Results in a 200 HTTP response with this payload:

{"error":{}}

This happens in the postgis_raster branch of pile.

strk commented 8 years ago

The pile logs:

pile_1 | { type: 'createLayer',
pile_1 |   options:
pile_1 |    { geom_column: 'rast',
pile_1 |      geom_type: 'raster',
pile_1 |      raster_band: '',
pile_1 |      srid: '',
pile_1 |      affected_tables: '',
pile_1 |      interactivity: '',
pile_1 |      attributes: '',
pile_1 |      access_token: 'pk.IUqP3GRWMR2amCYlVKWYCLf4ojg47xcwph2VMgvM',
pile_1 |      cartocss_version: '2.0.1',
pile_1 |      sql: '(SELECT * FROM file_slrakdizblvgullfwftj) as sub',
pile_1 |      file_id: 'file_slrakdizblvgullfwftj',
pile_1 |      return_model: true,
pile_1 |      projectUuid: 'project-b4b8737a-e72f-4ee1-b8fc-cbdd77f8e36a',
pile_1 |      cutColor: false } }
pile_1 | { err_id: 30,
pile_1 |   err_msg: 'create layer',
pile_1 |   error: [TypeError: Cannot call method 'split' of undefined] }

Not that it explains why it results in an {"error":{}} response...

See also #16

strk commented 8 years ago

Should be closed (in postgis_raster) by b7c574d20cef701bada811306c23f8be05124a91