{"action":"closed","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/10657","repository_url":"https://api.github.com/repos/CartoDB/cartodb","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/10657/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/10657/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/10657/events","html_url":"https://github.com/CartoDB/cartodb/issues/10657","id":188186636,"number":10657,"title":"NoMethodError: undefined method `regenerate_visualization' for nil:NilClass","user":{"login":"juanignaciosl","id":932968,"avatar_url":"https://avatars.githubusercontent.com/u/932968?v=3","gravatar_id":"","url":"https://api.github.com/users/juanignaciosl","html_url":"https://github.com/juanignaciosl","followers_url":"https://api.github.com/users/juanignaciosl/followers","following_url":"https://api.github.com/users/juanignaciosl/following{/other_user}","gists_url":"https://api.github.com/users/juanignaciosl/gists{/gist_id}","starred_url":"https://api.github.com/users/juanignaciosl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanignaciosl/subscriptions","organizations_url":"https://api.github.com/users/juanignaciosl/orgs","repos_url":"https://api.github.com/users/juanignaciosl/repos","events_url":"https://api.github.com/users/juanignaciosl/events{/privacy}","received_events_url":"https://api.github.com/users/juanignaciosl/received_events","type":"User","site_admin":false},"labels":[{"id":159755870,"url":"https://api.github.com/repos/CartoDB/cartodb/labels/backend","name":"backend","color":"d4c5f9","default":false},{"id":8530709,"url":"https://api.github.com/repos/CartoDB/cartodb/labels/bug","name":"bug","color":"fc2929","default":true},{"id":313918117,"url":"https://api.github.com/repos/CartoDB/cartodb/labels/Builder","name":"Builder","color":"207de5","default":false}],"state":"closed","locked":false,"assignee":{"login":"gfiorav","id":4222826,"avatar_url":"https://avatars.githubusercontent.com/u/4222826?v=3","gravatar_id":"","url":"https://api.github.com/users/gfiorav","html_url":"https://github.com/gfiorav","followers_url":"https://api.github.com/users/gfiorav/followers","following_url":"https://api.github.com/users/gfiorav/following{/other_user}","gists_url":"https://api.github.com/users/gfiorav/gists{/gist_id}","starred_url":"https://api.github.com/users/gfiorav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfiorav/subscriptions","organizations_url":"https://api.github.com/users/gfiorav/orgs","repos_url":"https://api.github.com/users/gfiorav/repos","events_url":"https://api.github.com/users/gfiorav/events{/privacy}","received_events_url":"https://api.github.com/users/gfiorav/received_events","type":"User","site_admin":false},"assignees":[{"login":"gfiorav","id":4222826,"avatar_url":"https://avatars.githubusercontent.com/u/4222826?v=3","gravatar_id":"","url":"https://api.github.com/users/gfiorav","html_url":"https://github.com/gfiorav","followers_url":"https://api.github.com/users/gfiorav/followers","following_url":"https://api.github.com/users/gfiorav/following{/other_user}","gists_url":"https://api.github.com/users/gfiorav/gists{/gist_id}","starred_url":"https://api.github.com/users/gfiorav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfiorav/subscriptions","organizations_url":"https://api.github.com/users/gfiorav/orgs","repos_url":"https://api.github.com/users/gfiorav/repos","events_url":"https://api.github.com/users/gfiorav/events{/privacy}","received_events_url":"https://api.github.com/users/gfiorav/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-11-09T08:01:25Z","updated_at":"2016-11-11T15:37:06Z","closed_at":"2016-11-11T15:37:06Z","body":"[Trace](https://rollbar.com/vizzuality/CartoDB/items/21067/?item_page=0&item_count=100&#traceback):\r\n\r\n```ruby\r\nNoMethodError: undefined method `regenerate_visualization' for nil:NilClass\r\n1\r\nFile \"/home/ubuntu/www/production.cartodb.com/releases/20161108170937/app/models/carto/visualization.rb\", line 449 in for_presentation\r\n2\r\nFile \"/home/ubuntu/www/production.cartodb.com/releases/20161108170937/app/controllers/carto/builder/public/embeds_controller.rb\", line 84 in visualization_for_presentation\r\n3\r\nFile \"/home/ubuntu/www/production.cartodb.com/releases/20161108170937/app/controllers/carto/builder/public/embeds_controller.rb\", line 53 in load_vizjson\r\n+ 2 non-project frames\r\n6\r\nFile \"/home/ubuntu/www/production.cartodb.com/releases/20161108170937/app/controllers/application_controller.rb\", line 99 in wrap_in_profiler\r\n+ 73 non-project frames\r\n```\r\n\r\nI still haven't dug into the cause. Nevertheless, this is failing by a indirect check:\r\n\r\n```ruby\r\n455   def non_mapcapped\r\n456     mapcapped? ? latest_mapcap.visualization : self\r\n457   end\r\n```\r\n\r\nAfter `mapcapped?` `true` we assume that there's a `latest_mapcap`, which is not right (given that line).\r\n\r\ncc @CartoDB/builder-backend "}}
{"actor":{"display_login":"gfiorav"}}