I have a problem with CORS, the problem is my code is executed (status 200) but I have an error in Google Chrome developer console.  My code:  function callUrl(url) {     var xmlhttp = null;      if (window.XMLHttpRequest) {         xmlhttp = new XML...
I have installed aws-cli and serverless in my windows 7 machine from command npm install -g aws-cli serverless and also successfully configured aws and sls  aws configure sls config credentials --provider aws --key <my-access-key> --secret <...
I'm trying to following this example, https://www.apollographql.com/docs/apollo-server/deployment/lambda/, to create a serverless GraphQL server which returns 'Hello world'.  The root directory contains essentially just two files, graphql...
I have a lambda/server less function that is going to perform several API calls that will take some time. I want to update the user on the front end as each task completed (progress bar style) but the only way I'm aware of to send information bac...
This question is pretty much the same as Serverless offline not getting route, but since that one was not answered I'm asking again. I'm trying to follow this article, https://medium.com/@awesome1888/how-to-use-serverless-locally-with-webpack...
My API gateway (using serverless) is setup to respond correctly:    function buildResponse(statusCode, body) {   // console.log(body);   return {     statusCode: statusCode,     headers: {       "Access-Control-Allow-Origin": "*",...
First of all, I am a Node newbie, moved from PHP development, so the question may be dumb..  I am in the process of developing a webservice using node with ESM ("import" syntax).  Now I am trying to build some microservices to do background o...
Forgive me but I am new to JS promises. I think I need to use one for interacting with an AWS service, which writes to and pulls data from DynamoDB. I have a JavaScript app which is ran by the Serverless npm plugin, which defines exported functions a...
i have 2 routes in my code, but always call the first route. I have tried several attempts but can't see what I am doing wrong. How to call the second route? My code is :  index.js   const express = require('express'); const serverless =...
I am using the serverless framework to develop lambda functions in the aws cloud. Currently, I am running into an issue when including a library that I made. It seems the recommended way to do this is to either:  1) npm install <path/to/your/lib&g...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.