Transfer-factory api error

API call:

/api/validator/v0/scan-proxy/registry/transfer-instruction/v1/transfer-factory

Error returned:

{

“error”: “Failed to reach consensus from 9 scan nodes, requiring 5 matching responses.”

}

Hi, what could be causing this error?

1. Is there a network problem with Canton?

2. Is our Validater being restricted?

Hi @externming , your validator logs should give you more details, actually listing what responses were received from which of the SVs.

You should be able to tell from the error codes whether the issues were intermittent (e.g. timeout) or more fundamental (e.g. connection refused from your IP).

You could also run this script from the docs to check connectivity:

(set -o pipefail
CURL='curl -fsS -m 5 --connect-timeout 5'
for url in $($CURL https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/scans | jq -r '.scans[].scans[].publicUrl'); do
  echo -n "$url: "
  $CURL "$url"/api/scan/version | jq -r '.version'
done)

Okay, thank you, I will do more testing.

root@qukuai-cc-1f-1:~# (set -o pipefail
CURL='curl -fsS -m 5 --connect-timeout 5'
for url in $($CURL https://scan.sv-1.global.canton.network.sync.global/api/scan/v0/scans | jq -r '.scans[].scans[].publicUrl'); do
  echo -n "$url: "
  $CURL "$url"/api/scan/version | jq -r '.version'
done)
curl: (22) The requested URL returned error: 403
root@qukuai-cc-1f-1:~# 
root@qukuai-cc-1f-1:~# 

That indicates you are not able to access the foundation node. You can find a full list of SV endpoints here, and configure your node to connect only via those that you can connect to with lowered threshold. Search for “bft-custom” on this page.