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

Panic with npm:@aws-sdk/client-s3 #23864

Closed
ralfstx opened this issue May 17, 2024 · 2 comments
Closed

Panic with npm:@aws-sdk/client-s3 #23864

ralfstx opened this issue May 17, 2024 · 2 comments
Labels
bug Something isn't working node compat node native extension related to the node-api (.node)

Comments

@ralfstx
Copy link

ralfstx commented May 17, 2024

export { GetObjectCommand, ListObjectsCommand, S3Client } from "npm:@aws-sdk/client-s3@3.29.0";
Platform: linux x86_64
Version: 1.43.3
Args: ["deno", "run", "--allow-all", "./src/main.ts"]

thread 'main' panicked at cli/napi/js_native_api.rs:1922:6:
called `Option::unwrap()` on a `None` value
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: core::option::unwrap_failed
   4: napi_get_named_property
   5: s_threadsafe_log_create
   6: aws_napi_logger_new
   7: napi_register_module_v1
   8: deno_napi::op_napi_open::op_napi_open<NP>::v8_fn_ptr
   9: Builtins_CallApiCallbackGeneric
@ralfstx
Copy link
Author

ralfstx commented May 17, 2024

Updating to npm:@aws-sdk/client-s3@3.557.0 and adding missing credentials in new S3Client() seem to have fixed the issue. Feel free to close if this is not helpful.

@bartlomieju bartlomieju added bug Something isn't working node compat node native extension related to the node-api (.node) labels May 17, 2024
@devsnek
Copy link
Member

devsnek commented Jun 10, 2024

This should be fixed in #24101, let us know if you run into any other issues.

@devsnek devsnek closed this as completed Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node compat node native extension related to the node-api (.node)
Projects
None yet
Development

No branches or pull requests

3 participants