我使用安全基础设施在仲裁-rinkeby上建立gnosis安全。
但是,当运行步骤3(添加链信息)时,我的控制台抛出以下错误-
root@1fd61b7d8e90:/app/src# python manage.py loaddata chain.json
2022-02-02 07:08:19,819 [INFO] [MainProcess] Chain update. Triggering CGW webhook
2022-02-02 07:08:19,819 [DEBUG] [MainProcess] Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
2022-02-02 07:08:19,821 [DEBUG] [MainProcess] Starting new HTTP connection (1): nginx:8000
2022-02-02 07:08:19,823 [DEBUG] [MainProcess] http://nginx:8000 "POST /v1/flush/some_random_token HTTP/1.1" 404 153
2022-02-02 07:08:19,823 [ERROR] [MainProcess] 404 Client Error: Not Found for url: http://nginx:8000/v1/flush/some_random_token
Installed 1 object(s) from 1 fixture(s)我可以确认,当我运行curl http://localhost:8000/cfg/api/v1/chains时,我添加的ChainInfo不会出现。相反,它返回(404)错误。
作为参考,这是我的chain.json文件-
[
{
"model": "chains.chain",
"pk": 421611,
"fields": {
"relevance": 100,
"name": "Arbitrum Testnet",
"short_name": "arb-rin",
"description": "",
"l2": true,
"rpc_authentication": "NO_AUTHENTICATION",
"rpc_uri": "https://arb-rinkeby.g.alchemy.com/v2/Blablabla",
"safe_apps_rpc_authentication": "NO_AUTHENTICATION",
"safe_apps_rpc_uri": "https://arb-rinkeby.g.alchemy.com/v2/Blablabla",
"block_explorer_uri_address_template": "https://testnet.arbiscan.io/address/{{address}}",
"block_explorer_uri_tx_hash_template": "https://testnet.arbiscan.io/tx/{{txHash}}",
"currency_name": "Ether",
"currency_symbol": "ETH",
"currency_decimals": 18,
"currency_logo_uri": "chains/4/currency_logo.jpg",
"transaction_service_uri": "http://localhost:8000/txs",
"vpc_transaction_service_uri": "http://localhost:8000/txs",
"theme_text_color": "#ffffff",
"theme_background_color": "#000000",
"ens_registry_address": null,
"recommended_master_copy_version": "1.3.0"
}
}
]发布于 2022-02-03 10:21:31
这似乎是一个问题,加载json,我们在它,同时,您可以使用http://localhost:8000/cfg/admin添加您的链
https://ethereum.stackexchange.com/questions/120537
复制相似问题