Closed ipuris closed 6 years ago
Hi @ipuris did you create the your first cloud api using mobilehub console or the cli?
I have reproduced the bug. I will send a PR to fix this
This issue was fixed with version 1.1.2
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server *-help
channels or Discussions for those types of questions.
I'm using AWS Mobile Hub and AWS Amplify for my React Native project. I successfully have integrated User Sign-in (Amazon Cognito), Cloud Logic (Amazon API Gateway and AWS Lambda), and NoSQL Database (Amazon DynamoDB).
I have tried to create CRUD API using command-line tool according to documentation in https://docs.aws.amazon.com/aws-mobile/latest/developerguide/react-native-access-databases.html
All steps have done successfully, but the last step,
awsmobile push
gave me an following error.The line 16 in
mobile-hub-project.yml
is aroundpaths
field. After theawsmobile cloud-api configure
, the file is changed into:where the original file is:
I found that
codeFilename
andenableCORS
fields are created, and that fields are ended with''
. After I enteredawsmobile push
in console, the fields are changed again like:Now two single quote in the end of
codeFilename
field has gone, but there are weird four single quotes in the end ofenableCORS
. I think there are some parsing error when configuring cloud-api andawsmobile push
, but I'm not sure what is the reason of this error. Please give me an advice if you have any idea.My full configuration for cloud-api is:
and the full error message is: