skip to Main Content

TypeError: command.resolveMiddleware is not a function AWS Lambda Javascript V3 – Amazon Web Sevices

I'm trying to programmatically upload a secret to an AWS Secret Manager instance using "@aws-sdk/client-secrets-manager": "^3.299.0", but I am continuously getting an error. I have followed the documentation here: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/getsecretvaluecommand.html I'm using Typescript version 5.0.2 and Node 18.x as runtime,…

VIEW QUESTION

Not able to make api call using axios instance – Javascript

export class TrelloService { public instance: AxiosInstance; constructor(token: string) { this.instance = axios.create({ baseURL: `https://api.trello.com/1?key=${process.env.TRELLO_API_KEY}&token=${token}`, }); } public async getUserDetails(email: string): Promise<any> { const userDetails = await this.instance.get(`/members/${email}`); return userDetails; } public static async getUserDetails2( email: string, token: string, throwError…

VIEW QUESTION
Back To Top
Search