I'm trying to get account data with the following code:

const iota = new IOTA({
  'host': 'https://testnet140.tangle.works',
  'port': 443

const seed = //my seed
iota.api.getAccountData(seed, function(error, accountData) {
  if (error) {
  } else {

But I am getting the error: Invalid Response: The deployment could not be found.


As a test I tried making a curl call to https://testnet140.tangle.works:443to get node info and it worked.

curl https://testnet140.tangle.works:443 \
  -X POST \
  -H 'Content-Type: application/json' \
  -H 'X-IOTA-API-Version: 1' \
  -d '{"command": "getNodeInfo"}'

However, making the same call in Postman results in a 404 and a message of The deployment could not be found

1 Answer 1


While I thought this looked like an issue with the iota.lib.js, it appears that it is actually a problem with the testnet node I was using, https://testnet140.tangle.works:443. Switching to http://p103.iotaledger.net:14700 solves my issue.


It appears that https://testnet140.tangle.works without the port is working while having the port results in the error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.