ошибка типа-модели-генератора для базы данных Oracle - PullRequest
0 голосов
/ 27 января 2020

Я столкнулся с приведенной ниже ошибкой при использовании typeorm-model-generator для Oracle DB.

Error connecting to Oracle Server.
Error occurred in typeorm-model-generator.
typeorm-model-generator@0.4.0  node@v12.6.0
If you think this is a bug please open an issue including this log on https://github.com/Kononnable/typeorm-model-generator/issues
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
(node:12680) UnhandledPromiseRejectionWarning: Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
(node:12680) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch
 block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:12680) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate th
e Node.js process with a non-zero exit code.

Использовал команду "npx typeorm-model-generator" с интерактивными параметрами. Сгенерированный автоматически файл .tomg-config подробно:

{
    "host": "hostIP",
    "port": 1521,
    "databaseName": "TestUser",
    "user": "TestUser",
    "password": "*******",
    "databaseType": "oracle",
    "schemaName": "",
    "ssl": false,
    "skipTables": []
  }

Кто-нибудь пробовал генератор модели типа с oracle дБ? Пожалуйста, помогите?

...