amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

amplify pull results in error: File at path '.../parameters.json' does not exist

Open agrabz opened this issue 1 year ago • 2 comments

Describe the bug

I try to run amplify pull, but it results in error: ⠇ Fetching updates to backend environment: staging from the cloud.⠋ Building res✔ Successfully pulled backend environment staging from the cloud. ✖ There was an error initializing your environment. 🛑 File at path: '/Users//amplify/backend/auth//parameters.json' does not exist

And it's correct, because in my backend folder I have some kind of numbering going on. Running ls in backend folder: amplify-meta 2.json awscloudformation storage 3 amplify-meta.json awscloudformation 2 tags 2.json api awscloudformation 3 tags.json api 3 backend-config 2.json types auth 3 backend-config.json

As you see I have a lot of 2s and 3s, which I don't really get. I noticed that I have a similar numbering in the amplify folder as well: #current-cloud-backend cli 3.json team-provider-info.json backend cli.json cli 2.json generated

And in my project folder as well: Amplify<Project> amplify amplify 2 README.md amplifyconfiguration.json <Project> awsconfiguration.json <Project>.xcodeproj graphql <Project>UnitTests

I honestly don't know how I got here. Seemingly I horribly messed up everything. I tried to change my scheme and I might have done something that should have not been done. Is there a way for recovery?

Steps To Reproduce

Run `amplify pull`

Expected behavior

Remote changes are retrieved without any error. Or if there's an error then I should be able to have some recovery options.

Amplify Framework Version

How do find this?

Amplify Categories

API

Dependency manager

Swift PM

Swift version

5.9

CLI version

12.10.1

Xcode version

15.2

Relevant log output

I ran amplify diagnose --send-report 
Project Identifier: 8e4abdb4e99dc04c9ec936596118bd35

Is this a regression?

No

Regression additional context

No response

Platforms

iOS

OS Version

17.0

Device

iPhone 15 Pro

Specific to simulators

No response

Additional context

No response

agrabz avatar Feb 22 '24 15:02 agrabz

:+1:

azu avatar May 16 '14 13:05 azu

This is a very old issue but was there ever any progress? Maybe using browserify? https://github.com/JamieMason/karma-benchmark uses a suite/benchmark approach very similar to matcha. Anyone thought of a karma-matcha plugin?

Hypercubed avatar May 15 '16 13:05 Hypercubed

Here is one way to run matcha in the browser using browserify and testling:

https://github.com/Hypercubed/EventsSpeedTests/blob/master/browser-run-all.sh https://github.com/Hypercubed/EventsSpeedTests/blob/master/matcha-run.js

Hypercubed avatar May 16 '16 14:05 Hypercubed

browser-run also works but you need to be careful of this issue: https://github.com/logicalparadox/electron/issues/10#issuecomment-220293327

Hypercubed avatar May 19 '16 11:05 Hypercubed