I have just used the Kubo URL tutorial I previously sent, to upload the content of the url you sent through the support ticket and it worked just fine.
I can access it now using my dedicated gateway, please see below screenshot
I encountered some issues when using the kubo-rpc-client library. I used Babelrc to configure it to parse and execute ESM and CJS, but there were always
Throw new ERR_ REQUIRE_ ESM (filename, parentPath, packageJsonPath);
Error [ERR_REQUIRE-ESM]: Must use import to load ES Module
My node version is v14.16.1, and I think it may be a problem caused by the node version. I have also tried using other versions of kubo-rpc-client, but still face the same problem. I cannot freely change the node version, so is there any other library that can replace kubo-rpc-client?
It seems that the issue is caused by the node version, but the version of the node cannot be changed freely in the project. I think that the library should be compatible with lower versions of nodeJs to have better compatibility.
Hi @evagreen, unfortunately I don’t know of any other library to replace the kubo-rpc-client. Regarding the backwards compatibility with older node versions maybe you can ask on their github, as the kubo client is not maintained by Infura.
The err_connection_timed_out usually means that there’s something wrong on your local network connection. Are you using a proxy or a vpn?
Also, could you try adding a file to IPFS using a simple curl just to see that uploads are indeed working from your side?
Please see the below doc and example in which you should specify a path to a file on your machine.
It seems like there are regional restrictions, even though IP access is already allowed in the infura backend, some IPs will still be request timeout. I succeeded on the server and thank you very much for your help! External Image External Image External Image