{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/91","labels_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/91/comments","events_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/91/events","html_url":"https://github.com/strongloop/loopback-explorer/issues/91","id":64139521,"number":91,"title":"Uncaught TypeError: Cannot read property 'length' of undefined","user":{"login":"jingood2","id":2952354,"avatar_url":"https://avatars.githubusercontent.com/u/2952354?v=3","gravatar_id":"","url":"https://api.github.com/users/jingood2","html_url":"https://github.com/jingood2","followers_url":"https://api.github.com/users/jingood2/followers","following_url":"https://api.github.com/users/jingood2/following{/other_user}","gists_url":"https://api.github.com/users/jingood2/gists{/gist_id}","starred_url":"https://api.github.com/users/jingood2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingood2/subscriptions","organizations_url":"https://api.github.com/users/jingood2/orgs","repos_url":"https://api.github.com/users/jingood2/repos","events_url":"https://api.github.com/users/jingood2/events{/privacy}","received_events_url":"https://api.github.com/users/jingood2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-25T00:55:49Z","updated_at":"2015-03-25T03:06:58Z","closed_at":"2015-03-25T03:05:25Z","body":"I am testing remote hook with 'loopback-getting-started-intermediate' & loopback-faq-model-hooks  examples.  \r\n\r\nI came across the case where my server wasn't responding to delete requests. delete action is done, but i can't catch a remote hook for destroy method.  I think you can produce it. \r\n\r\nWell, the actual bug I wanted to report is:\r\n\r\nUncaught TypeError: Cannot read property 'length' of undefined ( swagger-ui.js : 2028 )\r\n\r\n if (opts.highlightSizeThreshold && response.data.length > opts.highlightSizeThreshold) {\r\n        return response_body_el;\r\n      } else {\r\n        return hljs.highlightBlock(response_body_el);\r\n      }\r\n\r\nAlthough no content, It seems that swagger-ui check 'length' in response.\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/comments/85805412","html_url":"https://github.com/strongloop/loopback-explorer/issues/91#issuecomment-85805412","issue_url":"https://api.github.com/repos/strongloop/loopback-explorer/issues/91","id":85805412,"user":{"login":"jingood2","id":2952354,"avatar_url":"https://avatars.githubusercontent.com/u/2952354?v=3","gravatar_id":"","url":"https://api.github.com/users/jingood2","html_url":"https://github.com/jingood2","followers_url":"https://api.github.com/users/jingood2/followers","following_url":"https://api.github.com/users/jingood2/following{/other_user}","gists_url":"https://api.github.com/users/jingood2/gists{/gist_id}","starred_url":"https://api.github.com/users/jingood2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingood2/subscriptions","organizations_url":"https://api.github.com/users/jingood2/orgs","repos_url":"https://api.github.com/users/jingood2/repos","events_url":"https://api.github.com/users/jingood2/events{/privacy}","received_events_url":"https://api.github.com/users/jingood2/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T03:06:58Z","updated_at":"2015-03-25T03:06:58Z","body":"Instead of remote hook, I changed operation hook, it works. "}}