{"action":"created","issue":{"url":"https://api.github.com/repos/macacajs/macaca-datahub/issues/68","repository_url":"https://api.github.com/repos/macacajs/macaca-datahub","labels_url":"https://api.github.com/repos/macacajs/macaca-datahub/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/macacajs/macaca-datahub/issues/68/comments","events_url":"https://api.github.com/repos/macacajs/macaca-datahub/issues/68/events","html_url":"https://github.com/macacajs/macaca-datahub/issues/68","id":343931396,"node_id":"MDU6SXNzdWUzNDM5MzEzOTY=","number":68,"title":"接口名称相同报错","user":{"login":"boychina","id":20528499,"node_id":"MDQ6VXNlcjIwNTI4NDk5","avatar_url":"https://avatars2.githubusercontent.com/u/20528499?v=4","gravatar_id":"","url":"https://api.github.com/users/boychina","html_url":"https://github.com/boychina","followers_url":"https://api.github.com/users/boychina/followers","following_url":"https://api.github.com/users/boychina/following{/other_user}","gists_url":"https://api.github.com/users/boychina/gists{/gist_id}","starred_url":"https://api.github.com/users/boychina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boychina/subscriptions","organizations_url":"https://api.github.com/users/boychina/orgs","repos_url":"https://api.github.com/users/boychina/repos","events_url":"https://api.github.com/users/boychina/events{/privacy}","received_events_url":"https://api.github.com/users/boychina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-24T08:16:26Z","updated_at":"2018-07-24T16:36:42Z","closed_at":null,"author_association":"NONE","body":"我创建了两个项目，恰巧两个项目中的接口名称有重复的情况。第二个项目中新建对应的接口的时候，页面没有任何内容。\r\n打开控制台发现报500的错误。\r\n按理来说两个项目名字本身不相同，已经决定了不存在接口冲突的情况。\r\n![image](https://user-images.githubusercontent.com/20528499/43125530-e5bf2d02-8f5c-11e8-80fe-691297289653.png)\r\n\r\n以下是报错信息：\r\nSequelizeUniqueConstraintError: Validation error\r\nSequelizeUniqueConstraintError: Validation error\r\n    at Query.formatError (/home/admin/.nvm/versions/node/v8.9.4/lib/node_modules/macaca-datahub/node_modules/_sequelize@4.37.7@sequelize/lib/dialects/sqlite/query.js:417:16)\r\n    at Statement.afterExecute (/home/admin/.nvm/versions/node/v8.9.4/lib/node_modules/macaca-datahub/node_modules/_sequelize@4.37.7@sequelize/lib/dialects/sqlite/query.js:119:32)\r\n    at Statement.replacement (/home/admin/.nvm/versions/node/v8.9.4/lib/node_modules/macaca-datahub/node_modules/_sqlite3@3.1.13@sqlite3/lib/trace.js:19:31)\r\n"},"comment":{"url":"https://api.github.com/repos/macacajs/macaca-datahub/issues/comments/407471217","html_url":"https://github.com/macacajs/macaca-datahub/issues/68#issuecomment-407471217","issue_url":"https://api.github.com/repos/macacajs/macaca-datahub/issues/68","id":407471217,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzQ3MTIxNw==","user":{"login":"boychina","id":20528499,"node_id":"MDQ6VXNlcjIwNTI4NDk5","avatar_url":"https://avatars2.githubusercontent.com/u/20528499?v=4","gravatar_id":"","url":"https://api.github.com/users/boychina","html_url":"https://github.com/boychina","followers_url":"https://api.github.com/users/boychina/followers","following_url":"https://api.github.com/users/boychina/following{/other_user}","gists_url":"https://api.github.com/users/boychina/gists{/gist_id}","starred_url":"https://api.github.com/users/boychina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boychina/subscriptions","organizations_url":"https://api.github.com/users/boychina/orgs","repos_url":"https://api.github.com/users/boychina/repos","events_url":"https://api.github.com/users/boychina/events{/privacy}","received_events_url":"https://api.github.com/users/boychina/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T16:36:42Z","updated_at":"2018-07-24T16:36:42Z","author_association":"NONE","body":"OK, Thank you for your efforts!"}}
{"actor":{"display_login":"boychina"}}