{"action":"closed","issue":{"url":"https://api.github.com/repos/CartoDB/turbo-carto/issues/47","repository_url":"https://api.github.com/repos/CartoDB/turbo-carto","labels_url":"https://api.github.com/repos/CartoDB/turbo-carto/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/turbo-carto/issues/47/comments","events_url":"https://api.github.com/repos/CartoDB/turbo-carto/issues/47/events","html_url":"https://github.com/CartoDB/turbo-carto/issues/47","id":167881553,"number":47,"title":"Turbo issue with analysis layers","user":{"login":"xavijam","id":132146,"avatar_url":"https://avatars.githubusercontent.com/u/132146?v=3","gravatar_id":"","url":"https://api.github.com/users/xavijam","html_url":"https://github.com/xavijam","followers_url":"https://api.github.com/users/xavijam/followers","following_url":"https://api.github.com/users/xavijam/following{/other_user}","gists_url":"https://api.github.com/users/xavijam/gists{/gist_id}","starred_url":"https://api.github.com/users/xavijam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavijam/subscriptions","organizations_url":"https://api.github.com/users/xavijam/orgs","repos_url":"https://api.github.com/users/xavijam/repos","events_url":"https://api.github.com/users/xavijam/events{/privacy}","received_events_url":"https://api.github.com/users/xavijam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T15:20:56Z","updated_at":"2016-08-01T09:07:59Z","closed_at":"2016-08-01T09:07:59Z","body":"@AbelVM commented on [Thu Jun 30 2016](https://github.com/CartoDB/cartodb/issues/8390)\n\nThis layer, linked with a sampling analysis to a source node with SQL:\r\n```sql\r\nSELECT * FROM solutions.lg_grow\r\n```\r\nAggregated with hexabins, and using CSS:\r\n```css\r\n#layer {\r\n  polygon-fill: ramp([agg_value], (#fde0c5, #facba6, #f8b58b, #f59e72, #f2855d, #ef6a4c, #eb4a40), quantiles);\r\n  polygon-opacity: 0.8;\r\n  line-width: 1;\r\n  line-color: #3B3B58;\r\n  line-opacity: 1;\r\n  [zoom>=13]{\r\n    polygon-opacity: 0;\r\n  \tline-opacity: 0;\r\n  }\r\n}\r\n```\r\nIs triggering an error 400 like:\r\n`Request to Maps API failed: turbo-carto: Unable to process \"polygon-fill\". Reason: Unable to compute ramp. Reason: parse error - invalid geometry. Context: {\"selector\":\"#layer\",\"source\":{\"start\":{\"line\":2,\"column\":3},\"end\":{\"line\":2,\"column\":110}}}`\r\n\r\nIn the request: https://solutions.cartodb.com/api/v1/map/named/tpl_a544bb1e_3ed4_11e6_b932_0ea31932ec1d?stat_tag=a544bb1e-3ed4-11e6-b932-0ea31932ec1d&filters=%7B%22dataviews%22%3A%7B%2216a9ac7f-a317-411c-a8a2-025af4998468%22%3A%7B%22min%22%3A99.65000000000009%2C%22max%22%3A992%7D%2C%22ecff4896-f987-4157-98e4-dcdc4f38cfa7%22%3A%7B%22min%22%3A0%2C%22max%22%3A107%7D%7D%7D\r\n\r\nWith payload: `{\"layer0\":1,\"layer1\":1,\"layer2\":1,\"styles\":{}}`\r\n\r\nLoading the request in a new tab, gives:\r\n`{\"errors\":[\"Only authenticated users can get template maps\"],\"errors_with_context\":[{\"type\":\"unknown\",\"message\":\"Only authenticated users can get template maps\",\"http_status\":403}]}`\r\n\r\nDue to privacy concerns, URL of the vis on request\r\n\r\ncc @rochoa \n\n---\n\n@AbelVM commented on [Fri Jul 01 2016](https://github.com/CartoDB/cartodb/issues/8390#issuecomment-229901074)\n\nLooks like the style is applied while the analysis is still running, so there are null rows to use for the ramp.\n\n---\n\n@AbelVM commented on [Mon Jul 04 2016](https://github.com/CartoDB/cartodb/issues/8390#issuecomment-230236375)\n\nHoly maccaroni! Do you ever sleep?\n\n---\n\n@AbelVM commented on [Mon Jul 04 2016](https://github.com/CartoDB/cartodb/issues/8390#issuecomment-230277967)\n\nThe error now is:\r\n\r\n`tracker.js:10 Request to Maps API failed: turbo-carto: division by zero`\n\n"}}
{"actor":{"display_login":"rochoa"}}