Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Attach to Backend #1034

Closed
BrianSHenderson opened this issue Jul 3, 2018 · 6 comments
Closed

Cannot Attach to Backend #1034

BrianSHenderson opened this issue Jul 3, 2018 · 6 comments
Assignees

Comments

@BrianSHenderson
Copy link

When I pull from GitHub to a new machine I get errors when doing commands such as:
awsmobile pull
awsmobile console
Where I receive:
backend awsmobile project unknown

Attempting to do:
awsmobile init
Gives an Invalid Signature error

Any ideas?

@jordanranz
Copy link
Contributor

Curious what you mean by "pull from Github". Could you elaborate.

awsmobile pull and awsmobile console can only be run in a valid awsmobile project. You generally want to run awsmobile init prior to running these commands.

Could you provide a more verbose error output from the Invalid Signature error you are receiving.

@BrianSHenderson
Copy link
Author

BrianSHenderson commented Jul 3, 2018

I have downloaded the source code from GitHub. I believe aws-export.js is not included on GitHub by default.

Brians-iMac-Pro:nmm-vegas brianhenderson$ awsmobile init <awsmobile-project-id>

failed to link to backend awsmobile project with id = <awsmobile-project-id>

Invalid Signature

{ InvalidSignatureException: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
at Object.extractError (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/protocol/json.js:48:27)
at Request.extractError (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/protocol/rest_json.js:52:8)
at Request.callListeners (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request. (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/request.js:38:9)
at Request. (/usr/local/lib/node_modules/awsmobile-cli/node_modules/aws-sdk/lib/request.js:685:12)
message: 'The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.',
code: 'InvalidSignatureException',
time: 2018-07-03T17:25:10.071Z,
requestId: '1998f433-3cf4-49d1-be71-81e0be0a2e11',
statusCode: 403,
retryable: false,
retryDelay: 61.38202607007908 }

to change the configuration for the awsmobile-cli

$ awsmobile configure aws

Changing the awsmobile configure doesn't make any difference

@UnleashedMind
Copy link
Contributor

Please make sure you are using the same credentials to access aws.
You can do a side by side comparison by
awsmobile configure aws -l
on the two machines and see if they are the same

@BrianSHenderson
Copy link
Author

I have exactly the same credentials with awsmobile and aws cli along with the same npm versions of aws-amplify and aws-amplify-react, what else can I check?

@jordanranz jordanranz transferred this issue from aws-amplify/amplify-js Mar 13, 2019
@kaustavghosh06
Copy link
Contributor

@BrianSHenderson We've deprecated the awsmobile-cli. Please use the amplify-cli to build your app moving forward or use the https://github.com/awslabs/amplify-mobilehub-migrator to migrate your MobileHub project and then use the amplify-cli.

@github-actions
Copy link

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 for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants