someone, know why when i tried to run "prefect reg...
# ask-community
p
someone, know why when i tried to run "prefect register --project "my proj" -p /home/user/app_flows/” in a .sh file (to auto register my flows when my VM turns up) don’t work? But running the same line in the terminal works... The triggered error is prefect.utilities.exceptions.AuthorizationError: [{'path': ['project'], 'message': 'AuthenticationError: Forbidden', 'extensions': {'code': 'UNAUTHENTICATED'}}]
k
Hi @Pedro Henrique , I’ll ask the team about this.
z
Hey @Pedro Henrique -- this sounds like an issue where the auth isn't set up when your VM spins up. How did you set up your authentication? What happens if you run
prefect diagnostics
on VM start and in the terminal as you've described?