Skip to content

Incompatible with cos-nodejs-sdk-v5 #1172

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

Open
grasilife opened this issue Apr 23, 2025 · 2 comments
Open

Incompatible with cos-nodejs-sdk-v5 #1172

grasilife opened this issue Apr 23, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@grasilife
Copy link

What version of Elysia is running?

1.2.25

What platform is your computer?

Darwin 24.3.0 arm64 arm

What steps can reproduce the bug?

SignatureDoesNotMatch: The Signature you specified is invalid. It might be caused by crypto

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Have you try removing the node_modules and bun.lockb and try again yet?

No response

@grasilife grasilife added the bug Something isn't working label Apr 23, 2025
@grasilife
Copy link
Author

import STS from "qcloud-cos-sts";
STS.getCredential(
{
secretId: cosConfig.secretId,
secretKey: cosConfig.secretKey,
policy: policy,
durationSeconds: cosConfig.durationSeconds,
proxy: cosConfig.proxy,
// region: cosConfig.region,
// endpoint: 'sts.internal.tencentcloudapi.com', // 支持设置sts内网域名
},
function (err, tempKeys) {
if (tempKeys) tempKeys.startTime = startTime;
if (err) {
reject(err);
} else {
resolve(tempKeys);
}
},
);
Use it to upload files

@grasilife
Copy link
Author

Unable to build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant