When I try to follow the steps in the documentation to deploy my crew to the crewai enterprise, I do not seem to get past the first step itself. When I run crewai login and provide my email id, I get redirected to a page to verify the code, when I click confirm, I get the following message in the terminal
$ crewai login
Signing in to CrewAI Enterprise…
Enter your CrewAI Enterprise account email: chandu1552003@gmail.com
- Navigate to: Sign in
- Enter the following code: PJVV-MQQZ
Waiting for authentication… Traceback (most recent call last):
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\crewai\cli\authentication\utils.py”, line 33, in validate_jwt_token
decoded_token = jwt.decode(
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\jwt\api_jwt.py”, line 222, in decode
decoded = self.decode_complete(
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\jwt\api_jwt.py”, line 167, in decode_complete
self._validate_claims(
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\jwt\api_jwt.py”, line 268, in _validate_claims
self._validate_aud(
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\jwt\api_jwt.py”, line 413, in _validate_aud
raise InvalidAudienceError(“Audience doesn’t match”)
jwt.exceptions.InvalidAudienceError: Audience doesn’t match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\chand\anaconda3\envs\crew\lib\runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “C:\Users\chand\anaconda3\envs\crew\lib\runpy.py”, line 86, in run_code
exec(code, run_globals)
File "C:\Users\chand\anaconda3\envs\crew\Scripts\crewai.exe_main.py", line 7, in
sys.exit(crewai())
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\click\core.py”, line 1442, in call
return self.main(*args, **kwargs)
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\click\core.py”, line 1363, in main
rv = self.invoke(ctx)
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\click\core.py”, line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\click\core.py”, line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\click\core.py”, line 794, in invoke
return callback(*args, **kwargs)
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\crewai\cli\cli.py”, line 231, in login
AuthenticationCommand().login()
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\crewai\cli\authentication\main.py”, line 60, in login
return self._poll_for_token(device_code_data, client_id, token_url)
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\crewai\cli\authentication\main.py”, line 103, in _poll_for_token
self._validate_and_save_token(token_data)
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\crewai\cli\authentication\main.py”, line 144, in _validate_and_save_token
decoded_token = validate_jwt_token(**jwt_token_data)
File “C:\Users\chand\anaconda3\envs\crew\lib\site-packages\crewai\cli\authentication\utils.py”, line 52, in validate_jwt_token
raise Exception(f"Invalid token audience. Expected: ‘{audience}’")
Exception: Invalid token audience. Expected: ‘client_01JNJQWB4HG8T5980R5VHP057C’