inference-labs-inc / omron-subnet

Source for the Omron subnet
MIT License
16 stars 11 forks source link

NotVerifiedException on testnet #16

Closed terry-v5 closed 1 month ago

terry-v5 commented 1 month ago

When I didn't turn on the Nginx proxy, everything worked properly on testnet. Then I follow the guide of DDOS Mitigation Guide , get an error: ERROR | - NotVerifiedException#9bb88c36-6374-4caf-a1da-96a0c847c28c: Not Verified with error: No SS58 formatted address or public key provided -

The Nginx config: `server { listen 8086 default_server; listen [::]:8086 default_server; servername ;

location / {
    include proxy_params;
    proxy_redirect off;
    proxy_buffering off;
    proxy_pass http://127.0.0.1:18086;
}

}`

Run the miner with pm2 cmd: pm2 start miner.py --name miner-18086 --interpreter python3 -- --disable_blacklist true --netuid 118 --wallet.name miner --wallet.hotkey default --subtensor.network test --axon.ip 127.0.0.1 --axon.port 18086 --axon.external_ip 34.94.73.66 --axon.external_port 8086 --no-auto-update --disable-wandb --logging.debug

bittensor Version: 7.3.1

0xean commented 1 month ago

you need to configure nginx to pass headers

HudsonGraeme commented 1 month ago

As @0xean mentioned, you should be able to receive requests as expected by enabling header passthrough. Since dendrite headers include underscores, I believe this configuration line will resolve the issue:

underscores_in_headers on;
terry-v5 commented 1 month ago

Cool! Thanks a lot!