{"action":"closed","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/4340","repository_url":"https://api.github.com/repos/CartoDB/cartodb","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4340/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4340/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/4340/events","html_url":"https://github.com/CartoDB/cartodb/issues/4340","id":93725773,"number":4340,"title":"Inform user of 401s or refresh editor","user":{"login":"Kartones","id":2085449,"avatar_url":"https://avatars.githubusercontent.com/u/2085449?v=3","gravatar_id":"","url":"https://api.github.com/users/Kartones","html_url":"https://github.com/Kartones","followers_url":"https://api.github.com/users/Kartones/followers","following_url":"https://api.github.com/users/Kartones/following{/other_user}","gists_url":"https://api.github.com/users/Kartones/gists{/gist_id}","starred_url":"https://api.github.com/users/Kartones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kartones/subscriptions","organizations_url":"https://api.github.com/users/Kartones/orgs","repos_url":"https://api.github.com/users/Kartones/repos","events_url":"https://api.github.com/users/Kartones/events{/privacy}","received_events_url":"https://api.github.com/users/Kartones/received_events","type":"User","site_admin":false},"labels":[{"id":8530711,"url":"https://api.github.com/repos/CartoDB/cartodb/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":142731156,"url":"https://api.github.com/repos/CartoDB/cartodb/labels/Frontend","name":"Frontend","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-07-08T08:01:28Z","updated_at":"2016-11-16T16:20:49Z","closed_at":"2016-11-16T16:20:49Z","body":"If the user session expires or becomes invalid, right now the poolings of imports, geocodings, etc. start throwing 401s (and ajax requests will fail too), until you do a non-ajax operation and get redirected to the login.\n\nSo a better scenario would be to detect after a few 401s and either show a \"you've been disconnected\" or directly refresh the dashboard so it goes to the login page.\n\n/cc @javisantana @viddo @xavijam \n"}}
{"actor":{"display_login":"alonsogarciapablo"}}