#Unable to build due to cache issues

1 messages · Page 1 of 1 (latest)

digital oriole
#

I'm a novice to AWS Amplify. I added authorization to my react app, but now that I have, build is failing. It looks like an issue when trying to write the cache when retrieving the cache. What am I missing?

2023-04-06T20:14:07.255Z [INFO]: Successfully cleaned up Git credentials
2023-04-06T20:14:07.255Z [INFO]: # Checking for Git submodules at: /codebuild/output/src616055491/src/sh-auditor-portal/.gitmodules
2023-04-06T20:14:07.262Z [INFO]: # Retrieving environment cache...
2023-04-06T20:14:07.301Z [WARNING]: ! Unable to write cache: {"code":"ERR_BAD_REQUEST","message":"Request failed with status code 404"})}
2023-04-06T20:14:07.301Z [INFO]: ---- Setting Up SSM Secrets ----
2023-04-06T20:14:07.301Z [INFO]: SSM params {"Path":"/amplify/d2oywrc525wybh/staging/","WithDecryption":true}
2023-04-06T20:14:07.359Z [INFO]: No live updates for this build run
2023-04-06T20:14:07.362Z [INFO]: # Retrieving cache...
2023-04-06T20:14:07.395Z [INFO]: # Retrieved cache
#

Well, this is just a warning. The actual error follows in the backend stage of the build, with the following error:

2023-04-06T20:26:09.959Z [INFO]: Amplify AppID found: d2oywrc525wybh. Amplify App name is: sh-auditor-portal
2023-04-06T20:26:10.008Z [INFO]: Backend environment staging found in Amplify Console app: sh-auditor-portal
2023-04-06T20:26:10.488Z [WARNING]: ✖ There was an error initializing your environment.
2023-04-06T20:26:10.492Z [INFO]: 🛑 Failed to pull the backend.
2023-04-06T20:26:10.493Z [INFO]: Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
2023-04-06T20:26:10.504Z [INFO]: 
2023-04-06T20:26:10.504Z [INFO]: Session Identifier: 1627c685-3c11-42c7-b3a3-656a9f328b23
digital oriole
#

The baffling part is that usually after it tells you something about what went wrong after it says "Failed to pull the backend.", but it's just nothing. I really have nothing to work on here, and it's such a simple app I have no idea how it could be going this wrong