{"action":"closed","issue":{"url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/43","repository_url":"https://api.github.com/repos/ForbesLindesay/sync-request","labels_url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/43/comments","events_url":"https://api.github.com/repos/ForbesLindesay/sync-request/issues/43/events","html_url":"https://github.com/ForbesLindesay/sync-request/issues/43","id":133930527,"number":43,"title":"Error for DELETE","user":{"login":"arpanmukherjee1","id":10557028,"avatar_url":"https://avatars.githubusercontent.com/u/10557028?v=3","gravatar_id":"","url":"https://api.github.com/users/arpanmukherjee1","html_url":"https://github.com/arpanmukherjee1","followers_url":"https://api.github.com/users/arpanmukherjee1/followers","following_url":"https://api.github.com/users/arpanmukherjee1/following{/other_user}","gists_url":"https://api.github.com/users/arpanmukherjee1/gists{/gist_id}","starred_url":"https://api.github.com/users/arpanmukherjee1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arpanmukherjee1/subscriptions","organizations_url":"https://api.github.com/users/arpanmukherjee1/orgs","repos_url":"https://api.github.com/users/arpanmukherjee1/repos","events_url":"https://api.github.com/users/arpanmukherjee1/events{/privacy}","received_events_url":"https://api.github.com/users/arpanmukherjee1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-16T09:40:08Z","updated_at":"2016-02-16T11:14:50Z","closed_at":"2016-02-16T11:14:50Z","body":"Hi,\r\n\r\nWe get \"Socket hangup\" as error while trying to execute the below code\r\n\r\n```javascript\r\nvar res = syncRequest('DELETE', global.packageData.configurationServiceUrl + 'deleteConfig', {\r\n        json: { data: configElement }\r\n    });\r\n    return JSON.parse(res.getBody('utf8'));\r\n```\r\n\r\nIf we pass ```null``` for the ```bodyContent``` parameter it works fine. Like below:\r\n```javascript\r\nvar res = syncRequest('DELETE', global.packageData.configurationServiceUrl + 'deleteConfig', null);\r\n    return JSON.parse(res.getBody('utf8'));\r\n```\r\n\r\nCan you suggest the solution to this?"}}