Could not alter predicate: Error: unauthorized ip address:

When I tried to add an index to predict, reported the following error.

1 Like

Hi @tss.
Can you please verify whether you have whitelisted the IP from which you are making add index call.
Sample alpha command would be dgraph alpha --my=alpha:7080 --lru_mb=2048 --zero=zero:5080 --whitelist 0.0.0.0/0. I request you to go through this documentation.

If the issue still persists, please help us with logs/steps to debug?

1 Like

Thank you!!! The problem has been solved. :grinning:

how to solve this problem?

The solution is this:

I have tried,but not work

@ezrealpan Looks like the format of the value passed to --whitelist has changed to a range and not a CIDR block. For example: --whitelist=10.0.0.1:10.0.0.10 would allow all IPs between 10.0.0.1 and 10.0.0.10.