-
-
Notifications
You must be signed in to change notification settings - Fork 446
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
Error when generating using sigV4Client #114
Comments
@CharithW It seems like importing the |
@dailenspencer I think this is an import related issue. Can you compare your |
sigV4Client.js is identical. My application is being used differently than this tutorial's purpose so its hard to compare awsLib.js to my file. I've added you as a collaborator to the project. If you want, take a look at helpers/aws/index.js <- this is the only other file thats calling the aws functions in a similar fashion. The error only occurs every so often :/ |
@dailenspencer Hmm I don't see the invite for some reason. Can you check the version of |
@jayair I dont have react-scripts in my package.json. Adding that now and will update you. Here is the invite link |
react-script installation didnt have an effect |
I'm receiving a similar error: 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? |
Any update on this issue? |
We might have found a culprit here - #113 (comment) I'm looking into a proper solution but in the mean time, there is a quick workaround in that comment. |
We are unable to replicate this issue with the version of the code in tutorial. Here is more info on this - #113 (comment) If somebody has been able to replicate it, I'd like to take a look. |
You can reproduce it in IE11, and it is caused by line 231:
IE11 doesn't support the URL interface. I fixed it by setting a host entry directly in config.js and then passing it as an argument to the sigV4Client client:
and then setting the header in sigV4Client.js directly:
|
@markuspelnens Oh interesting. I'm not sure if this is the same issue other folks are having but let me take a look into it. Thanks for digging into it. |
@markuspelnens I've updated the |
Great! Was it also the cause for the issue other people were having? |
@markuspelnens I'm not entirely sure, it's been really hard to track down. |
I had the same issue. |
@forste Are you able to replicate it reliably? Does it happen every time for you? If so can you share your repo, I'd like to test it and fix it. |
I am getting following error when trying to access api gateway through federated identities.
This is the error I am getting
TypeError: __WEBPACK_IMPORTED_MODULE_2__sigV4Client__.a.newClient(...).signRequest is not a function at _callee$ (http://localhost:3001/static/js/bundle.js:205699:10) at tryCatch (http://localhost:3001/static/js/bundle.js:195602:40) at Generator.invoke [as _invoke] (http://localhost:3001/static/js/bundle.js:195840:22) at Generator.prototype.(anonymous function) [as next] (http://localhost:3001/static/js/bundle.js:195654:21) at step (http://localhost:3001/static/js/bundle.js:205663:191) at http://localhost:3001/static/js/bundle.js:205663:361 at <anonymous>
Any workarounds are much appreciated :)
The text was updated successfully, but these errors were encountered: