POST https://ipfs.infura.io:5001/api/v0/add?stream-channels=true net::ERR_CONNECTION_TIMED_OUT 如图

.JPG 这是ipfs跨域的问题吗?

请先 登录 后评论

最佳答案 2020-05-07 18:26

解决了 ,不采用infura.iol连(不知道什么原因连不上),我连localhost,要npm安装ipfs-api const ipfsAPI = require('ipfs-api'); const ipfs = ipfsAPI({ host: 'localhost', port: '5001', protocol: 'http' });

请先 登录 后评论

其它 1 个回答

Tiny熊 - 布道者
  擅长:智能合约,以太坊
请先 登录 后评论
  • 2 关注
  • 0 收藏,3573 浏览
  • 一个好人 提出于 2020-05-05 16:36

相似问题