Closed yhvh009 closed 2 years ago
Would you be willing to share your Amplify project via email to amplify-cli@amazon.com?
Would you be willing to share your Amplify project via email to amplify-cli@amazon.com?
sent by ji****an@gmail.com
Hi @yhvh009 - we received your email and someone is looking at it for you. We will follow up when we have an update.
Hi @yhvh009 - we received your email and someone is looking at it for you. We will follow up when we have an update.
Ok, Thanks a lot
@yhvh009 can you go through the steps you went through to create your function and storage resources? I'm able to reproduce the error, but I'd like to understand how your app got into this state. Thanks!
@yhvh009 can you go through the steps you went through to create your function and storage resources? I'm able to reproduce the error, but I'd like to understand how your app got into this state. Thanks!
Sorry, I'm not sure about that, I did plenty of actions, mostly on the terminal using cli, and I thought I've tried delete the db and recreate it when I first met this error, but still got the problem after some time.
Hey @yhvh009 :wave: apologies for the delay! Do you see a bucketName
parameter in your storage's parameters.json
file? This file is located at amplify/backend/storage/<resource-name>/parameters.json
. I'm curious about the undefined
that's shown in the URL from your original post
Hey @yhvh009 👋 apologies for the delay! Do you see a
bucketName
parameter in your storage'sparameters.json
file? This file is located atamplify/backend/storage/<resource-name>/parameters.json
. I'm curious about theundefined
that's shown in the URL from your original post
nope, there's only three params in the json file of the dynamodb storage:
{
"tableName": "XXXX",
"partitionKeyName": "s3Key",
"partitionKeyType": "S"
}
on the other hand, there's a bucketname in the s3 bucket storage, and lots of params related to s3xxxx
Hey @yhvh009 :wave: apologies for the delay again. Are you still experiencing this issue with the latest version of the CLI? I'm unable to reproduce this behavior in a new project.
Hey @yhvh009 :wave: just wanted to follow-up on this one and see if you were still experiencing this issue with the latest version of the CLI?
Before opening, please confirm:
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v12.10.0
Amplify CLI Version
5.3.1
What operating system are you using?
Mac 10.14.6
Amplify Categories
storage, api
Amplify Commands
Not applicable
Describe the bug
the brief work flow of my project:
brief structure of my project:
And when I run 'amplify mock' to mock the backend and 'npm run dev' to debug the frontend. The upload process was successful and I can get the tmpUrl like "http://localhost:20005/undefined-staging/public/photos/e334f3ebc5ad661665714373ee58fc3c.jpg?X-Amz-Algorithm= " , but when request the graphql api, the mocked backend shutdown and print
the "dbname" is a dynamo db but not a s3bucket, so of course there's no s3-cloudformation-template.json, there's 'dbname-cloudformation-template.json' in that path.
so I don't why the mock function search for a s3template in a dynamodb folder.
Expected behavior
the mock function perform stably
Reproduction steps
the mock server will shutdown and frontend get "POST http://192.168.1.83:20002/graphql net::ERR_CONNECTION_RESET"
GraphQL schema(s)
Log output
Additional information
the whole message in the terminal