{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/12908","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/12908/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/12908/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/12908/events","html_url":"https://github.com/laravel/framework/issues/12908","id":144157099,"number":12908,"title":"502 Gateway - when call ::with() Eloquent","user":{"login":"aios","id":737550,"avatar_url":"https://avatars.githubusercontent.com/u/737550?v=3","gravatar_id":"","url":"https://api.github.com/users/aios","html_url":"https://github.com/aios","followers_url":"https://api.github.com/users/aios/followers","following_url":"https://api.github.com/users/aios/following{/other_user}","gists_url":"https://api.github.com/users/aios/gists{/gist_id}","starred_url":"https://api.github.com/users/aios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aios/subscriptions","organizations_url":"https://api.github.com/users/aios/orgs","repos_url":"https://api.github.com/users/aios/repos","events_url":"https://api.github.com/users/aios/events{/privacy}","received_events_url":"https://api.github.com/users/aios/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-29T05:05:53Z","updated_at":"2016-03-29T08:58:44Z","closed_at":"2016-03-29T08:52:03Z","body":"Hi all.\r\nI catched an 502 error on Nginx + PHP 7.0.4 FPM + MySQL with message:\r\n> recv() failed (104: Connection reset by peer) while reading response header from upstream, client...\r\n\r\nHow to reproduce?\r\n\r\n1. Make two models User and Street (with migration)\r\n2. Make relation hasOne() User to Street like something:\r\n\r\n```php\r\npublic function street()\r\n{\r\n        return $this->hasOne('App\\Street', 'id', 'street_id');\r\n}\r\n```\r\n3. Make some route \r\n```php\r\nuse App\\User;\r\nRoute::get('/', function () {\r\n    $user = User::with('street')->get();\r\n    return view('index');\r\n});\r\n```\r\n4. Go to PhpMyAdmin - or %your-favorite-db-manager% and remove street_id from users table.\r\n5. Go to http://yourownsite.com/\r\n\r\nI think there should be an exception , or at least an error . The fact that the field does not exist ."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/202785379","html_url":"https://github.com/laravel/framework/issues/12908#issuecomment-202785379","issue_url":"https://api.github.com/repos/laravel/framework/issues/12908","id":202785379,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T08:58:44Z","updated_at":"2016-03-29T08:58:44Z","body":"It will have done. PHP just crashed anyway."}}