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

gefragt vor 3 Jahren1918 Aufrufe
2 Antworten
1
Akzeptierte Antwort

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).

beantwortet vor 3 Jahren
0

YES! THANK YOU

Godd
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen