serverless-framework

Serverless framework with python and aws lambda

Serverless framework with python and aws lambda Question: When i import a function from another file and do the deploy it doesn’t work. It gives me: error 500 internal server error. The python requirements works fine, because the hello function doesn’t give me an error. But getPrediction doesn’t work well In offline mode all works …

Total answers: 1

XGBoost Library (libxgboost.so) could not be loaded

XGBoost Library (libxgboost.so) could not be loaded Question: Problem In a serverless project, I want to import XGBoost into a lambda written on Python. But when I’m trying to invoke the lambda, I see this error on CloudWatch: [ERROR] XGBoostError: XGBoost Library (libxgboost.so) could not be loaded. Likely causes: * OpenMP runtime is not installed …

Total answers: 3

Serverless WSGI Local Server Running Slow

Serverless WSGI Local Server Running Slow Question: Im using the node package serverless-wsgi 1.4.9 to serve the routes of my serverless framework application When I run by dev server serverless wsgi serve I’m having problems with the requests taking a long time (10seconds – 1min) to return a response in chrome. To avoid hitting a …

Total answers: 1

How could I use aws lambda to write file to s3 (python)?

How could I use aws lambda to write file to s3 (python)? Question: I have tried to use lambda function to write a file to S3, then test shows “succeeded” ,but nothing appeared in my S3 bucket. What happened? Does anyone can give me some advice or solutions? Thanks a lot. Here’s my code. import …

Total answers: 3

How to test aws lambda functions locally

How to test aws lambda functions locally Question: I have a mobile application backend developed with node.js express. I tried it to deploy it as lambda service. For that I created a Serverless Framework project (https://github.com/serverless). Previously I tested mobile app locally by starting express backend application. Now I can’t find a method to test …

Total answers: 9