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

TypeError: __WEBPACK_IMPORTED_MODULE_3__sigV4Client__.a.newClient(...).signRequest is not a function #17

Open
bencarlson opened this issue Nov 11, 2017 · 5 comments

Comments

@bencarlson
Copy link

Several people are getting this error, but have opened the issue under the wrong project:

sst/guide#114

TypeError: WEBPACK_IMPORTED_MODULE_3__sigV4Client.a.newClient(...).signRequest is not a function

I've confirmed that my awsLib.js and sigV4Client.js are identical to the source in github. This issue seems to only occur upon login. If I reload the page (hard refresh) the homepage with items renders just fine. I'm guessing it has something to do with the proximity of the AWS call to Lambda, and the login/authentication?

I'm not finding a resolution - any ideas?

@jayair
Copy link
Member

jayair commented Nov 11, 2017

@bencarlson Can I try it in your project? Link me to your repo or upload it. I'd like to see what is going on.

@bencarlson
Copy link
Author

bencarlson commented Nov 11, 2017

It's in a private Bitbucket repo... I've emailed it to you at: contact at anoma dot ly.

@sanjosedennis7593
Copy link

sanjosedennis7593 commented Nov 12, 2017

I'm also getting that kind of error, i found out that invokeApiG function needed some credentials to execute the function.

In my case, what i'm trying to do here is after entering the confirmation code in the registration process, i add some function that will trigger a lambda function that will save user's additional information to dynamodb. This function that i've made works, it saves the information to the dynamodb, unfortunately, the error will be displayed, but if i refreshed the page, the error message will be gone and display the page that is intended to be shown.

I found out that in the sigV4Client file, i console the config.accessKey and config.secretKey it returns an undefined value.

@bencarlson
Copy link
Author

@sanjosedennis7593 Dennis, that's pretty much exactly what I'm trying to do!

  1. User signs up
  2. User clicks email verification link
  3. User loads login page
  4. User enters credentials and submits
  5. Upon submission, user is logged in, and I fire a invokeApiG() call to create a user DB entry in DynamoDB for storing misc data. When this fires, the error shows up. Reloading the page resolves the issue.

-Ben

@forste
Copy link

forste commented Jan 6, 2018

They have posted a fix here: sst/guide#113 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants