-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I'm trying to set up and run the Reppo Solver Node in test mode, but the script exits with a ValueError because the EXCHANGE_CONTRACT_ADDRESS environment variable is missing β even though this value shouldn't be needed for mock/test runs.
π§ͺ Command Executed
python main.py start --test
β Full Error Message
____ _ _ _
| _ \ ___ _ __ _ __ ___ | \ | | ___ __| | ___
| |_) / _ \ '_ \| '_ \ / _ \ | \| |/ _ \ / _` |/ _ \
| _ < __/ |_) | |_) | (_) | | |\ | (_) | (_| | __/
|_| \_\___| .__/| .__/ \___/ |_| \_|\___/ \__,_|\___|
|_| |_|
Traceback (most recent call last):
File "/root/solver-node/main.py", line 50, in <module>
cli()
File "/root/solver-node/venv/lib/python3.10/site-packages/click/core.py", line 1442, in __call__
return self.main(*args, **kwargs)
File "/root/solver-node/venv/lib/python3.10/site-packages/click/core.py", line 1363, in main
rv = self.invoke(ctx)
File "/root/solver-node/venv/lib/python3.10/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/root/solver-node/venv/lib/python3.10/site-packages/click/core.py", line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/root/solver-node/venv/lib/python3.10/site-packages/click/core.py", line 794, in invoke
return callback(*args, **kwargs)
File "/root/solver-node/main.py", line 27, in start
node = SolverNode(test_mode=test, mock_mode=mock)
File "/root/solver-node/solverNode.py", line 23, in __init__
self.submitter = SolutionSubmitter() if not mock_mode else None
File "/root/solver-node/submitSolution.py", line 34, in __init__
raise ValueError(f"Missing required environment variables: {', '.join(missing)}")
ValueError: Missing required environment variables: EXCHANGE_CONTRACT_ADDRESS
Even though I'm using --test mode and don't expect to interact with the Exchange contract, the node fails to start unless the EXCHANGE_CONTRACT_ADDRESS environment variable is explicitly set.
This results in a blocker for local testing and dry runs of the solver.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels