Skip to content

getRemainingTimeInMillis is returning NaN. #33

@ramaguruprakash

Description

@ramaguruprakash

We created a custom docker image for lambda with the following dockerFile.

DockerFile
ARG FUNCTION_DIR="/code"
FROM node:12-buster as build-image

ARG FUNCTION_DIR

RUN apt-get update &&
apt-get install -y
g++
make
cmake
unzip
libcurl4-openssl-dev

RUN npm -g config set user root
RUN npm install -g aws-lambda-ric
RUN npm -g config set user nobody

RUN mkdir -p ${FUNCTION_DIR}
COPY . ${FUNCTION_DIR}
RUN chmod -R 775 ${FUNCTION_DIR}
WORKDIR ${FUNCTION_DIR}
ENTRYPOINT exec /usr/local/bin/npx aws-lambda-ric index.handler

When we print the getRemainingTimeInMillis, we get the value as NaN.

We tried to print the function itself and got the following response.

function () { return deadline - Date.now(); }

As we missing anything here ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions