[Error] TypeError [ERR_INVALID_ARG_TYPE]" argument must be of type string. #6134
Closed
3 tasks done
Labels
bug
This issue is a bug.
Checkboxes for prior research
Describe the bug
When using
@aws-sdk/client-bedrock-runtime
within the Supabase Edge Runtime I get the following error because this runtime doesn't have access to the file system.SDK version number
@aws-sdk/client-bedrock-runtime@3.583.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
deno 1.43.3 (release, aarch64-apple-darwin); v8 12.4.254.13; typescript 5.4.5
Reproduction Steps
supabase init
supabase functions new bedrock
supabase/functions/bedrock/index.ts
file:supabase/.env
file with your AWS credentialssupabase functions serve --env-file supabase/.env
Observed Behavior
Expected Behavior
Since I'm passing the required configuration
BedrockRuntimeClientConfig
within the code, so in my scenario the client shouldn't need to access the file system.Possible Solution
Would you be able to wrap the file system access in a way that it doesn't throw an error? For context, if I run my code in a local environment that exposes the file system, it works fine.
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: