Amplify CLI pull command - NotAuthorizedException

0

Hi there,

I just tried to start working on my project again after the holidays.
I try to run

amplify pull --appId [..appId..] --envName staging

The command aborts with the following error:
⠹ Fetching updates to backend environment: staging from the cloud.Failed to refresh tokens.
Failed to get credentials.
NotAuthorizedException: Refresh Token has expired

code: 'NotAuthorizedException',
time: 2021-01-10T21:28:06.763Z,
requestId: 'ea44f142-2471-4fe2-9d26-546e770a5b1d',
statusCode: 400,
retryable: false,
retryDelay: 75.62772473140802

As a newcomer to AWS and Amplify, i am quite lost here. It was working perfectly during December, the pull command always reliably fetched the changes.

Any hints highly appreciated.
Best,
Birger

질문됨 3년 전1918회 조회
2개 답변
1
수락된 답변

You should try logging out

amplify logout --appId appIDHere
✔ Do you want to logout from all sessions? (y/N) · true
Logged out globally.

Then reconfigure:

amplify configure --appId appIDHere --envName staging
This will take you to admin console and ask if you want to login via the cli (you do).

답변함 3년 전
0

YES! THANK YOU

Godd
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인