Installed a node on macOS Big Sur 11.4 (Intel). Node is sync’d and up and running. Any command line goal command returns an error: {“message”:“Invalid API Token”}
curl -X GET http://$(cat $ALGORAND_DATA/algod.net)/v2/status -H “X-Algo-API-Token: $(cat $ALGORAND_DATA/algod.token)”
I’ve tried reinstalling, requesting a new token with no luck.
Tried a few examples from this tutorial all with the same error.
I think my $ALGORAND_DATA is misconfigured or not pointing to the correct location. When I substitute “$(cat $ALGORAND_DATA)” for “$(cat ~/node/data/algod.net)” I get valid responses.
Thank you for the insights, helped me resolve the issue. I had 2 separate things going on, macOS prompted me to change the default shell in the midst of installation and probably needed a reboot to update my /.zshrc file correctly. Secondly, the node setup tutorial I was using to debug my node has some bad characters in the sample code (smart quote parentheses) that zsh didn’t like and also caused invalid token error on the goal commands on zsh on macOS.