ot-node
ot-node copied to clipboard
Error: Unable to Publish - Node times out while creating asset
Issue description
With SSL enabled or disabled, the node is not returning a response or logging any details about the asset creation. You will see my wallet has over 40 txns but none are recorded in any node logging. I can see in this block that my configured wallet is making some kind of transaction:
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Flofar.origin-trail.network#/explorer/query/0xb45b2222a664cf1d94dcf371a42d02b854718f855d6e166b2297b6c1c17e9676
Expected behavior
Actual behavior
Steps to reproduce the problem
Run this project and it will timeout after the node fails to respond for too long. https://github.com/CosmiCloud/ODNWeather
- Try to publish an asset using the current version of dkg.js
Specifications
- Node version: v6.0.0-beta.2.0
- Platform: Ubuntu 22.04
- Node wallet: 0x8d4C2a4aFEE6b6D3B688bFEf68A5A9e54D07569B
- Node libp2p identity: QmdbTKjSE1hHv5Z944Xbd4FZB9umMJygdDxcUDiqMcoUJN
Contact details
- Email:
Error logs
otnodelogs.txt
/root/ODNWeather/node_modules/dkg.js/services/node-api-service/implementations/http-service.js:40
throw Error(Unable to publish: ${e.message}
);
^
Error: Unable to publish: connect ETIMEDOUT 0.0.34.196:80 at /root/ODNWeather/node_modules/dkg.js/services/node-api-service/implementations/http-service.js:40:15 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async AssetOperationsManager.create (/root/ODNWeather/node_modules/dkg.js/managers/asset-operations-manager.js:31:23) at async publish (/root/ODNWeather/src/queryOTNode.js:12:19)
Disclaimer
Please be aware that the issue reported on a public repository allows everyone to see your node logs, node details, and contact details. If you have any sensitive information, feel free to share it by sending an email to [email protected].
In your code you create the client using :
const dkg = new DKG({ endpoint: "http://127.0.0.1", port: 8900, useSSL: false, loglevel: "trace", });
Ot-node has SSL enabled by default. If you want to disable it, you can follow these instructions..
If you want to use the client using SSL, you should edit your code to look like this :
const dkg = new DKG({ endpoint: "https://127.0.0.1", port: 8900, useSSL: true, loglevel: "trace", });
This issue is being closed as inactive due to the date of the last activity on it. If you believe this is still a problem, please create a new issue and confirm that it is reproducible in the current ot-node release version. We are working towards closing open issues that meet specific criteria and ask you to create a new one for those that that are truly bugs in current release. We'll be monitoring those issues so that they are properly managed.
Thank you, OriginTrail Team