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
"Request is missing Authentication Token" after upgrade to 3.25.0 #11561
Comments
Hi even i am also facing the same issue while using serverless. |
Hi, even I am also facing the same issue while using serverless. |
I am also getting the same issue ughhhhh spent whole day for this |
I don't think this issue comes after the upgrade, even existing projects are still working with the upgraded. |
I tested it with 2.24.1 -> works as expected |
I tested with several versions of serverless, from 1.61 to 3.21, all have this error. |
I'm getting the same error when deploying the code to AWS lambda from today only. I've a serverless version 3.25.0. |
yes even i tried using older versions but nothing seems to work. |
Something is really broken here unexpectedly. Spent almost all day checking what I'm doing wrong. |
i'm waiting.... |
We are also facing the same issue. The build was working until yesterday... |
Facing the same problem but I've also update "aws-sdk": "2.1262.0" which are also not working after downgrading the serveless againg to 3.24.1 |
but what i am thinking is how it was working until yesterday because 3.25.0 release was merged 7 days ago |
Yeah, had to |
@daum1820 This could be the issue. Serverless has a dependency to aws-sdk. As I have written before. Version 3.24.1 is working for us. Please don't simply downgrade your package.json because it does not downgrade the aws-sdk dependency. You need to do a clean install! |
yes serverless has bumped new version of aws js library and upgraded it. the serverless needs to downgrade the version back to old to make it working |
Clean install meaning? |
Be aware: If you have |
@andrmoel i am using serverless deploy in pipelines so it should not fetch the latest version for aws sdk js right ? |
Deleting node modules worked for me. After serverless version 3.17 |
@sbmvirdi depends on your package.json and yarn.lock (Sorry, we only use yarn. I think for npm it is package-lock.json). Your yarn.lock contains the state of truth and should be checked in version control. Just check if your yarn.lock contains the correct version of |
I am using serverless for laravel deployment using bref package. Getting the same error. Any solution? |
I'm also facing the same issue since morning. I have tried lots of solutions but don’t work. at last, I have removed node_modules and use the node 16 version. it's working fine for me. |
@andrmoel but i am not pushing my lock file to github i am just pushing my package json file to repo and doing npm i in the ci. i tried using specific version for serverless in package json (3.23.0) but it was getting failed. |
@sbmvirdi then you should also push your lock. It is best practice because you always want to have the same build on your machine that you have in production. In your case, the fix and minor versions differ. This can cause side effects. But we are getting off-topic ;) |
Same issue here, with v2 of serverless. Even tried upgrading from 2.72.2 to 2.72.3 but does not change anything. Your Environment Information --------------------------- |
@medikoo why did you close it? There is no clear solution yet; even downgrading doesn’t work. |
I finally got it to work from my side. Make sure to understand if you are using serverless npm installed globally or as a local project in your packages. When your serverless is installed through npm install -global, you can also fix the correct aws-sdk as following: npm i -g serverless@2.72.2 aws-sdk@2.1259.0 (tested and finally working) |
Yes for me i just updated my package json to have these versions and instead of installing serverless globally used npx command to deploy which uses package from node_modules.
|
this worked very well, thanks |
@MehranJanfeshan I didn't close it (it's other duplicate issue that was closed) |
facing the same issue while deploying the aws lambda after using the serverless-python-requirements plugin. Without it, it 's working fine |
This is maintainer of AWS SDK for JavaScript, and I'm visiting from aws/aws-sdk-js#4286 If you can provide a minimal repro there, it would be helpful for us to triage, debug and provide a fix. |
Just released v3.25.1 version of the Framework, which fixes AWS SDK to the last working version. Please upgrade and the issue should be fixed |
Commits between v3.25.0...v3.25.1 This was fixed by pinning aws-sdk to |
EDIT: Never mind. The versions If you can provide minimal repro in aws/aws-sdk-js#4286, so that we can compare it against different versions of aws-sdk. |
@trivikr I have setup a simple project to reproduce the issue https://github.com/andrmoel/serverless-aws-bug Edit: Checkout the "working" branch to see the solution provided here #11561 (comment) |
Thank you @andrmoel Do you have another repro without serverless? |
@trivikr sorry can't provide this. |
@trivikr sorry. May there is a misunderstanding here. |
AWS SDK for JavaScript is maintained by AWS, but serverless is community maintained. Looking at the current repro and fixes, the issue is likely with |
We have a fix available in aws/aws-sdk-js#4288 using the repro which @andrmoel provided. It will be helpful if any maintainer of serverless can provide a minimal repro just with We are formalizing our plans to enter AWS SDK for JavaScript v2 into maintenance mode in 2023. For more details, check our README in Version 2.x Support. |
This worked for me. |
Can you merge bump to yarn modern in andrmoel/serverless-aws-bug#1? I'll post a draft PR using yarn patch to verify our fix prior to release. |
Verified that fix from aws/aws-sdk-js#4288 fixes "Request is missing Authentication Token" issue. Refer Pull request in https://github.com/trivikr/serverless-aws-bug/pull/1 |
@trivikr great thanks for fast action! 💯 🎉 |
Release |
I added serverless config and it works.
serverless version: 2.72.3, 3.25.1 |
@trivikr thank you for the quick response |
@han-fs doesn’t work for pipelines that use assumed roles, and exposing keys and secrets in pipelines is not ideal. |
AWS-SDK has released a new version which fix the issue. |
Your fix works for us. We are now able to deploy everything that failed yesterday. Thank you! |
Message from maintainers:
Upgrade to v3.25.1
This issue is caused by recent regression in AWS SDK. Please increase visibility by adding thumbs up at aws/aws-sdk-js#4286 and aws/aws-sdk-js#4285
Are you certain it's a bug?
Is the issue caused by a plugin?
Are you using the latest v3 release?
Is there an existing issue for this?
Issue description
After I have upgraded from 2.24.1 to 3.25.0 I do get the following error while I deploy:
Service configuration (serverless.yml) content
N/A
Command name and used flags
serverless deploy --stage=staging
Command output
Environment information
Running "serverless" from node_modules Framework Core: 3.25.0 (local) 3.1.1 (global) Plugin: 6.2.2 SDK: 4.3.2
The text was updated successfully, but these errors were encountered: