{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3914","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3914/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3914/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3914/events","html_url":"https://github.com/nuxt/nuxt.js/issues/3914","id":361512176,"node_id":"MDU6SXNzdWUzNjE1MTIxNzY=","number":3914,"title":"Nuxt SSR crashes with 200 response code","user":{"login":"uptownhr","id":1021110,"node_id":"MDQ6VXNlcjEwMjExMTA=","avatar_url":"https://avatars2.githubusercontent.com/u/1021110?v=4","gravatar_id":"","url":"https://api.github.com/users/uptownhr","html_url":"https://github.com/uptownhr","followers_url":"https://api.github.com/users/uptownhr/followers","following_url":"https://api.github.com/users/uptownhr/following{/other_user}","gists_url":"https://api.github.com/users/uptownhr/gists{/gist_id}","starred_url":"https://api.github.com/users/uptownhr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uptownhr/subscriptions","organizations_url":"https://api.github.com/users/uptownhr/orgs","repos_url":"https://api.github.com/users/uptownhr/repos","events_url":"https://api.github.com/users/uptownhr/events{/privacy}","received_events_url":"https://api.github.com/users/uptownhr/received_events","type":"User","site_admin":false},"labels":[{"id":882702378,"node_id":"MDU6TGFiZWw4ODI3MDIzNzg=","url":"https://api.github.com/repos/nuxt/nuxt.js/labels/cmty:bug-report","name":"cmty:bug-report","color":"f7b2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-18T22:47:09Z","updated_at":"2018-09-19T01:34:18Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Version\r\n\r\n[v1.4.2](https://github.com/nuxt.js/releases/tag/v1.4.2)\r\n\r\n### Reproduction link\r\n\r\n[https://github.com/uptownhr/nuxt-issue-3914](https://github.com/uptownhr/nuxt-issue-3914)\r\n\r\n### Steps to reproduce\r\n\r\nThe STR is not straight forward as I'm only able to reproduce this on a live project I have and running `ab -c 2 -n 20000`. It's only once the server has been hit around 10k times where the bug `Maximum Stack` on `VueComponent.mergeDataFn` is triggered. \r\n\r\nOnce this error is triggered, I can see on the log `statusCode: 500`, however the web server still responds with 200 and shows an error page.\r\n\r\n\r\n```\r\n{ RangeError: Maximum call stack size exceeded\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1164:34)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51)\r\nwww_1       |     at VueComponent.mergedDataFn (/www/node_modules/vue/dist/vue.runtime.common.js:1166:51) statusCode: 500, name: 'RangeError' }\r\n```\r\n\r\n\r\n### What is expected ?\r\n\r\nWhen the SSR rendering crashes, the web response should also be a 500. \r\n\r\nSecond thing that should probably is happen is also kill the server, so the process manager has a chance to reboot the server.\r\n\r\n### What is actually happening?\r\n\r\nThe server errors and still returns a 200. This causes error monitors not be able to alert. Also because it catches the crash and not actually crash, any process managers listening to restart the server cannot. \r\n\r\n<!--cmty--><!--cmty_prevent_hook-->\r\n<div align=\"right\"><sub><em>This bug report is available on <a href=\"https://cmty.app/nuxt\">Nuxt</a> community (<a href=\"https://cmty.app/nuxt/nuxt.js/issues/c7771\">#c7771</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/422616199","html_url":"https://github.com/nuxt/nuxt.js/issues/3914#issuecomment-422616199","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3914","id":422616199,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjYxNjE5OQ==","user":{"login":"uptownhr","id":1021110,"node_id":"MDQ6VXNlcjEwMjExMTA=","avatar_url":"https://avatars2.githubusercontent.com/u/1021110?v=4","gravatar_id":"","url":"https://api.github.com/users/uptownhr","html_url":"https://github.com/uptownhr","followers_url":"https://api.github.com/users/uptownhr/followers","following_url":"https://api.github.com/users/uptownhr/following{/other_user}","gists_url":"https://api.github.com/users/uptownhr/gists{/gist_id}","starred_url":"https://api.github.com/users/uptownhr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uptownhr/subscriptions","organizations_url":"https://api.github.com/users/uptownhr/orgs","repos_url":"https://api.github.com/users/uptownhr/repos","events_url":"https://api.github.com/users/uptownhr/events{/privacy}","received_events_url":"https://api.github.com/users/uptownhr/received_events","type":"User","site_admin":false},"created_at":"2018-09-19T01:34:18Z","updated_at":"2018-09-19T01:34:18Z","author_association":"CONTRIBUTOR","body":"added https://github.com/uptownhr/nuxt-issue-3914"}}
{"actor":{"display_login":"uptownhr"}}