Problem 408 Solution
This solution is only for servers with Allora Docker - If there are different containers in Docker, it will also delete them. Be careful.
Connect Server
Delete Container's :
docker rm -f $(docker ps -a -q) && docker system prune --volumes -a -f
Enter Allora-Chain Directory :
cd allora-chain
Enter the basic-coin-prediction-node Directory :
cd basic-coin-prediction-node
Let's go into the docker-compose.yml file :
nano docker-compose.yml

Your TimeOut here is 5, let's increase it to 10.

Let's edit it here:
--topic=allora-topic-1-worker

Let's save: CTRL X - CTRL Y - Enter
Let's Rebuild and Run :
docker compose build
docker compose up -d
Check :
curl --location 'http://localhost:6000/api/v1/functions/execute' \
--header 'Content-Type: application/json' \
--data '{
"function_id": "bafybeigpiwl3o73zvvl6dxdqu7zqcub5mhg65jiky2xqb4rdhfmikswzqm",
"method": "allora-inference-function.wasm",
"parameters": null,
"topic": "1",
"config": {
"env_vars": [
{
"name": "BLS_REQUEST_PATH",
"value": "/api"
},
{
"name": "ALLORA_ARG_PARAMS",
"value": "ETH"
}
],
"number_of_nodes": -1,
"timeout": 2
}
}'
Result :
{
"code": "200",
"request_id": "03001a39-4387-467c-aba1-c0e1d0d44f59",
"results": [
{
"result": {
"stdout": "{\"value\":\"2564.021586281073\"}",
"stderr": "",
"exit_code": 0
},
"peers": [
"12D3KooWG8dHctRt6ctakJfG5masTnLaKM6xkudoR5BxLDRSrgVt"
],
"frequency": 100
}
],
"cluster": {
"peers": [
"12D3KooWG8dHctRt6ctakJfG5masTnLaKM6xkudoR5BxLDRSrgVt"
]
}
}
Last updated