{"action":"reopened","issue":{"url":"https://api.github.com/repos/Akryum/vue-apollo/issues/382","repository_url":"https://api.github.com/repos/Akryum/vue-apollo","labels_url":"https://api.github.com/repos/Akryum/vue-apollo/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/Akryum/vue-apollo/issues/382/comments","events_url":"https://api.github.com/repos/Akryum/vue-apollo/issues/382/events","html_url":"https://github.com/Akryum/vue-apollo/issues/382","id":356619643,"node_id":"MDU6SXNzdWUzNTY2MTk2NDM=","number":382,"title":"SSR exit when throwing error in update method","user":{"login":"alx13","id":1572864,"node_id":"MDQ6VXNlcjE1NzI4NjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1572864?v=4","gravatar_id":"","url":"https://api.github.com/users/alx13","html_url":"https://github.com/alx13","followers_url":"https://api.github.com/users/alx13/followers","following_url":"https://api.github.com/users/alx13/following{/other_user}","gists_url":"https://api.github.com/users/alx13/gists{/gist_id}","starred_url":"https://api.github.com/users/alx13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alx13/subscriptions","organizations_url":"https://api.github.com/users/alx13/orgs","repos_url":"https://api.github.com/users/alx13/repos","events_url":"https://api.github.com/users/alx13/events{/privacy}","received_events_url":"https://api.github.com/users/alx13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-04T00:48:13Z","updated_at":"2018-09-04T12:56:50Z","closed_at":null,"author_association":"NONE","body":"I'm trying to use `vue-apollo` with SSR rendering, but when query is succesfull and I have an error in data update hook, my code just exits with an error.\r\n\r\nI configured my app according to vue-apollo SSR guide with bundledRenderer.\r\n\r\nBut the following code just exits the application:\r\n```vue\r\n<template>\r\n  <ul>\r\n    <li v-for=\"(offer, index) in offers\" v-bind:key=\"index\">\r\n      {{ offer.title }}\r\n    </li>\r\n  </ul>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport Vue from 'vue';\r\nimport gql from 'graphql-tag';\r\n\r\nexport default {\r\n  apollo: {\r\n    offers: {\r\n      query: gql`\r\n      {\r\n        offers {\r\n          id\r\n          title\r\n        }\r\n      }\r\n      `,\r\n      update(data) {\r\n        throw new Error('error');\r\n      },\r\n    },\r\n  },\r\n}\r\n</script>\r\n```\r\n\r\nwith following error:\r\n```\r\nError: error\r\n    at VueComponent.update (webpack-internal:///LWFF:10:23)\r\n    at SmartQuery.nextResult (~/project/node_modules/vue-apollo/dist/vue-apollo.umd.js:822:44)\r\n    at notifySubscription (~/project/node_modules/apollo-link/node_modules/zen-observable/lib/Observable.js:126:18)\r\n    at flushSubscription (~/project/node_modules/apollo-link/node_modules/zen-observable/lib/Observable.js:112:5)\r\n    at ~/project/node_modules/apollo-link/node_modules/zen-observable/lib/Observable.js:156:14\r\n    at ~/project/node_modules/apollo-link/node_modules/zen-observable/lib/Observable.js:67:7\r\n    at <anonymous>\r\n    at process._tickDomainCallback (internal/process/next_tick.js:228:7)\r\n\r\n```\r\n\r\nI tried to catch that error after `renderToString` function with Promise.catch.\r\nIt is caught, but somehow there is same error, that propagetes thru all stack ending my node process. \r\nCan't find the way to intercept this error, except than in `update` hook."}}
{"actor":{"display_login":"alx13"}}