{"action":"created","issue":{"url":"https://api.github.com/repos/jsforce/jsforce/issues/311","labels_url":"https://api.github.com/repos/jsforce/jsforce/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/jsforce/jsforce/issues/311/comments","events_url":"https://api.github.com/repos/jsforce/jsforce/issues/311/events","html_url":"https://github.com/jsforce/jsforce/issues/311","id":125649539,"number":311,"title":"ERROR_HTTP_413: Error: Request Entity Too Large: head","user":{"login":"arupsarkar","id":1261108,"avatar_url":"https://avatars.githubusercontent.com/u/1261108?v=3","gravatar_id":"","url":"https://api.github.com/users/arupsarkar","html_url":"https://github.com/arupsarkar","followers_url":"https://api.github.com/users/arupsarkar/followers","following_url":"https://api.github.com/users/arupsarkar/following{/other_user}","gists_url":"https://api.github.com/users/arupsarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/arupsarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arupsarkar/subscriptions","organizations_url":"https://api.github.com/users/arupsarkar/orgs","repos_url":"https://api.github.com/users/arupsarkar/repos","events_url":"https://api.github.com/users/arupsarkar/events{/privacy}","received_events_url":"https://api.github.com/users/arupsarkar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-08T17:00:15Z","updated_at":"2016-01-15T03:20:16Z","closed_at":"2016-01-15T03:20:16Z","body":"\r\nWe are getting this error in few orgs, the version of jsforce lib used is 1.4.1\r\n\r\nThe rest resource request we are trying to make is the following.\r\n\r\nGET /services/data/v32.0/sobjects/rC_Giving__Batch__c/a2e37000000Dzy6AAC 200 146.021 ms - 1577\r\nGET /services/data/v32.0/sobjects/Attachment/find/1?ContentType=application%2Fjson&ParentId=a2e37000000Dzy6AAC 200 364.071 ms - 829\r\nGET /services/data/v32.0/sobjects/Attachment/00P37000001C18VEAS/blob/Body 200 90.772 ms - 393\r\n\r\nsoon after we are getting the below error\r\n\r\nError:\r\n[ERROR] errors ERROR_HTTP_413: Error: Request Entity Too Large: head\r\n[ERROR] errors print stack ERROR_HTTP_413: Error: Request Entity Too Large: head\r\n    at HttpApi.getError (/Users/ASarkar/Workspace/rc_batchentry/node_modules/jsforce/lib/http-api.js:240:13)\r\n    at /Users/ASarkar/Workspace/rc_batchentry/node_modules/jsforce/lib/http-api.js:85:22\r\n    at /Users/ASarkar/Workspace/rc_batchentry/node_modules/jsforce/node_modules/promise/lib/core.js:33:15\r\n    at flush (/Users/ASarkar/Workspace/rc_batchentry/node_modules/jsforce/node_modules/promise/node_modules/asap/asap.js:27:13)\r\n    at process._tickCallback (node.js:355:11)\r\n[ERROR] req.cookies.SF_ACCESS_TOKEN 00D37000000PmKB!AQQAQHiP_pRHuwE78pmP2oLFwWWrCFVu5Ir6JPnWHYIpVfrqXhIGgKksY0q6yspWdlqKvsIUOoiYi.VtwJLPA0lH_og2EpFp\r\n[ERROR] req.cookies.SF_INSTANCE_URL https://na31.salesforce.com"},"comment":{"url":"https://api.github.com/repos/jsforce/jsforce/issues/comments/171861133","html_url":"https://github.com/jsforce/jsforce/issues/311#issuecomment-171861133","issue_url":"https://api.github.com/repos/jsforce/jsforce/issues/311","id":171861133,"user":{"login":"stomita","id":23387,"avatar_url":"https://avatars.githubusercontent.com/u/23387?v=3","gravatar_id":"","url":"https://api.github.com/users/stomita","html_url":"https://github.com/stomita","followers_url":"https://api.github.com/users/stomita/followers","following_url":"https://api.github.com/users/stomita/following{/other_user}","gists_url":"https://api.github.com/users/stomita/gists{/gist_id}","starred_url":"https://api.github.com/users/stomita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stomita/subscriptions","organizations_url":"https://api.github.com/users/stomita/orgs","repos_url":"https://api.github.com/users/stomita/repos","events_url":"https://api.github.com/users/stomita/events{/privacy}","received_events_url":"https://api.github.com/users/stomita/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T03:20:16Z","updated_at":"2016-01-15T03:20:16Z","body":"In REST API \"Request Entity Too Large\" error typically happens when the SOQL statement becomes too long. Your code seems fetching all fields defined including relationship so it may generate considerably long statement which the platform cannot handle."}}