Questions tagged [claudiajs]

46 questions
8
votes
2 answers

Set HTTP Options Response w/ Claudia-Api-Builder for AWS ApiGateway

I am trying to set the Access-Control-Allow-Methods header for options and it appears currently that claudia-api-builder does not have the ability to set the http options response, like a GET request would. See GET example below. GET…
Tyler Rafferty
  • 3,391
  • 4
  • 28
  • 37
3
votes
1 answer

Something went wrong installing the "sharp" module (AWS Lambda)

I have Vue.js app pushed on a staging website. When I run the app using my local backend, everything works fine. I'm able to use the sharp module to crop images, they get saved to an AWS S3 bucket and display correctly. However, once I try to deploy…
3
votes
0 answers

Database migration For Aws lambda,Postgresql

Can anyone give me a really good example of using clauida with sequelize & doing db migration from AWS lambda to the database hosted in AWS RDS server.
3
votes
1 answer

Claudia.js Auto generated lambda function not displaying on AWS console

So I have created a restAPI backend with express.js and have used claudia.js to upload my endpoints to lambda functions and everything went smoothly. The end points work as expected and return the correct information. My only issue is that when I go…
3
votes
3 answers

AWS Lambda: module initialization error: Error at Error (native) at Object.fs.openSync (fs.js:641:18)

I have an AWS DynammoDB lambda which triggers by a DynamoDB stream. All implementation has been done in JS with ClaudiJS. When the lambda is deployed with the claudia create command there is no issue. The problem is when the same function is…
Dulaj Atapattu
  • 448
  • 6
  • 23
3
votes
2 answers

AWS Lambda setupRequestListerners RequestEntityTooLargeException claudia.js

creating Lambda lambda.setupRequestListeners { RequestEntityTooLargeException: Request must be smaller than 69905067 bytes for the CreateFunction operation message: 'Request must be smaller than 69905067 bytes for the CreateFunction…
Simon Guldstrand
  • 488
  • 1
  • 5
  • 24
3
votes
2 answers

Claudia.js with multiple AWS lambda functions

I'm using claudia.js CLI to deploy functions and web API to AWS lambda and API gateway. My project files structure is as follow: functions --function1 ---- node_modules ---- package.json ---- index.js ---- claudia.json --function2 ----…
2
votes
2 answers

AWS API gateway 403 error for Custom Authorizer

I am using Claudia-api-builder to create and deploy the. https://github.com/claudiajs/example-projects/tree/master/custom-authorizers My AWS custom authorizer looks like this : let jwtDecode = require('jwt-decode'); var generatePolicy = function…
2
votes
1 answer

Claudia.js create cannot find module lambda in typescript project

After searching for hours I can't figure out how to properly run claudia create in my project. Following this turoial, I created a group and a user the AWS console, then I added the keys to my .aws/credentials file. Then I ran this command that…
Louis
  • 1,913
  • 2
  • 28
  • 41
2
votes
2 answers

AWS IOT SDK- how to implement the Promise

I am working on AWS IoT, trying to create API to update Shadow things. What I have done (in ClaudiaJS) refer to https://github.com/aws/aws-iot-device-sdk-js var awsIot = require('aws-iot-device-sdk'); api.post(PREFIX + '/iot/test/{property}',…
Phong Vu
  • 2,726
  • 6
  • 24
  • 52
2
votes
3 answers

EntityAlreadyExists: Role with name chatbot-andrea-executor already exists

I am creating a Nodebot with claudiajs. const botBuilder = require('claudia-bot-builder') const excuse = require('huh') module.exports = botBuilder((req) => { return `Thanks for sending ${req.text}. Your message is very important to us, but…
Luillyfe
  • 6,183
  • 8
  • 36
  • 46
1
vote
0 answers

re-deploying API Gateway on AWS causes ConflictException: Method already exists for this resource

I have a set of API endpoints which was successfully deployed and re-deployed after several updates to the API endpoints. However, an error occurred when both my colleague and I deployed the API resource at the same time. When I tried to redeploy it…
cguy
  • 325
  • 5
  • 15
1
vote
0 answers

Why does claudia.js fail package validation when using nconf in a specific way?

I am using nconf in a NodeJS project, which I want to deploy to AWS Lambda using claudia.js. I have followed this example: const path = require('path'); const nconf = require('nconf'); function Configuration(){ nconf.argv().env({ lowerCase:…
reikje
  • 2,850
  • 2
  • 24
  • 44
1
vote
1 answer

How to return the API response while using claudia-api-builder?

I am using Claudia-api-builder with Sequelize and facing issues while returning the response from an API app.js : const ApiBuilder = require('claudia-api-builder'); const app = new ApiBuilder(); const citizenPersonalDetails =…
Akshay
  • 107
  • 2
  • 11
1
vote
1 answer

Request object not parsed correctly in Claudia JS framework

i want to build an API as a serverless AWS Lambda Function and use ClaudiaJS as a framework. However, when passing a JSON object to the POST route, i cannot parse the contents of request.body correctly since they are of the type "string" instead of…
malte238749874
  • 159
  • 2
  • 12
1
2 3 4