{"action":"created","issue":{"url":"https://api.github.com/repos/oknosoft/metadata-devtraining/issues/24","repository_url":"https://api.github.com/repos/oknosoft/metadata-devtraining","labels_url":"https://api.github.com/repos/oknosoft/metadata-devtraining/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/oknosoft/metadata-devtraining/issues/24/comments","events_url":"https://api.github.com/repos/oknosoft/metadata-devtraining/issues/24/events","html_url":"https://github.com/oknosoft/metadata-devtraining/issues/24","id":313592889,"number":24,"title":"Ошибка при meta:prebuild","user":{"login":"rsyuzyov","id":7994115,"avatar_url":"https://avatars2.githubusercontent.com/u/7994115?v=4","gravatar_id":"","url":"https://api.github.com/users/rsyuzyov","html_url":"https://github.com/rsyuzyov","followers_url":"https://api.github.com/users/rsyuzyov/followers","following_url":"https://api.github.com/users/rsyuzyov/following{/other_user}","gists_url":"https://api.github.com/users/rsyuzyov/gists{/gist_id}","starred_url":"https://api.github.com/users/rsyuzyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsyuzyov/subscriptions","organizations_url":"https://api.github.com/users/rsyuzyov/orgs","repos_url":"https://api.github.com/users/rsyuzyov/repos","events_url":"https://api.github.com/users/rsyuzyov/events{/privacy}","received_events_url":"https://api.github.com/users/rsyuzyov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-12T06:29:16Z","updated_at":"2018-04-12T07:00:47Z","closed_at":null,"author_association":"NONE","body":"Делаю\r\n`npm run meta:prebuild`\r\n, получаю ошибку:\r\n```\r\n> helloworld@2.0.16-beta.56 meta:prebuild C:\\1c\\home\\rsyuzyov\\metadata\\web\r\n> node scripts/meta.prebuild.js\r\n\r\n  prebuild: Читаем конструктор и плагины +0ms\r\n  prebuild: Создаём объект MetaEngine +789ms\r\n  prebuild: Настраиваем MetaEngine +7ms\r\n  prebuild: Читаем описание метаданных из CouchDB http://localhost:5984/hw_ +\r\n  prebuild: Подключение к http://localhost:5984/hw_meta/ +44ms\r\n  prebuild: Не удалось получить объект meta из CouchDB\r\n  prebuild: Проверьте логин, пароль и строку подключения +10ms\r\n  prebuild: { error: 'not_found',\r\n  prebuild:   reason: 'missing',\r\n  prebuild:   name: 'not_found',\r\n  prebuild:   status: 404,\r\n  prebuild:   message: 'missing',\r\n  prebuild:   docId: 'meta' } +1ms\r\n```\r\nОбъект meta в hw_meta действительно отсутствует, но есть meta_patch:\r\n![image](https://user-images.githubusercontent.com/7994115/38659753-43fb5568-3e44-11e8-946b-ef94ad6811cc.png)\r\nЕсли запрашивать его, то выполнение завершается успешно.\r\nКак правильней будет: переименовать meta_patch в meta или запрашивать meta_patch вместо meta?\r\n"},"comment":{"url":"https://api.github.com/repos/oknosoft/metadata-devtraining/issues/comments/380699496","html_url":"https://github.com/oknosoft/metadata-devtraining/issues/24#issuecomment-380699496","issue_url":"https://api.github.com/repos/oknosoft/metadata-devtraining/issues/24","id":380699496,"user":{"login":"rsyuzyov","id":7994115,"avatar_url":"https://avatars2.githubusercontent.com/u/7994115?v=4","gravatar_id":"","url":"https://api.github.com/users/rsyuzyov","html_url":"https://github.com/rsyuzyov","followers_url":"https://api.github.com/users/rsyuzyov/followers","following_url":"https://api.github.com/users/rsyuzyov/following{/other_user}","gists_url":"https://api.github.com/users/rsyuzyov/gists{/gist_id}","starred_url":"https://api.github.com/users/rsyuzyov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsyuzyov/subscriptions","organizations_url":"https://api.github.com/users/rsyuzyov/orgs","repos_url":"https://api.github.com/users/rsyuzyov/repos","events_url":"https://api.github.com/users/rsyuzyov/events{/privacy}","received_events_url":"https://api.github.com/users/rsyuzyov/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T07:00:47Z","updated_at":"2018-04-12T07:00:47Z","author_association":"NONE","body":"Евгений, спасибо за ответ!\r\nС префиксом порядок, проблема не в том, что база hw_meta не найдена, а в том, что объект meta не существует. То есть, если в meta.prebuild.js вместо\r\nreturn db.get('meta')\r\nсделать\r\nreturn db.get('meta_patch')\r\nто пересборка проходит нормально.\r\nПоэтому и возник исходный вопрос :)\r\nА пересборку захотелось потому, что мне ведь не helloworld в конечном итоге нужен, а собственное приложение со своими метаданными. Ну и просто посмотреть, что будет, конечно."}}
{"actor":{"display_login":"rsyuzyov"}}