codetheweb / serverless-step-functions-local

Run AWS step functions offline with Serverless
MIT License
17 stars 17 forks source link

Step Functions Local failed to start with code 1 #23

Closed ferkanzai closed 11 months ago

ferkanzai commented 11 months ago

Hello,

I'm just trying to use the plugin to test a new Step Function I need to create before deploying it. The thing is that after configuring it as the documentation stated, I'm always getting the following when running sls offline start:

Captura de pantalla 2023-11-13 a las 18 03 35

I'm not sure what I'm doing incorrectly, but everything seems ok. My package.json looks like this (maybe it's a incompatibility stuff or whatever):

{
  "dependencies": {
    "@aws-sdk/client-lambda": "^3.363.0",
    "@aws-sdk/client-s3": "^3.363.0",
    "@aws-sdk/s3-request-presigner": "^3.363.0",
    "@react-pdf/renderer": "3.1.12",
    "axios": "^1.6.0",
    "date-fns": "^2.30.0",
    "jsonwebtoken": "8.4",
    "mongoose": "^7.3.1",
    "patch-package": "^7.0.0",
    "react": "^18.2.0",
    "winston": "^3.0.0"
  },
  "overrides": {
    "@react-pdf/font": "2.2.1",
    "@react-pdf/pdfkit": "2.1.0"
  },
  "devDependencies": {
    "@babel/cli": "^7.20.7",
    "@babel/core": "^7.22.5",
    "@babel/eslint-parser": "^7.22.5",
    "@babel/preset-react": "^7.18.6",
    "@babel/preset-typescript": "^7.22.5",
    "@rollup/plugin-babel": "^6.0.3",
    "@rollup/plugin-commonjs": "^25.0.2",
    "@rollup/plugin-json": "^6.0.0",
    "@rollup/plugin-node-resolve": "^15.1.0",
    "@rollup/plugin-typescript": "^11.1.2",
    "@types/aws-lambda": "^8.10.126",
    "@types/react": "^18.2.14",
    "eslint": "^8.44.0",
    "rollup": "^3.25.3",
    "rollup-plugin-copy": "^3.4.0",
    "serverless-offline": "^12.0.4",
    "serverless-offline-lambda": "^1.0.6",
    "serverless-step-functions": "^3.17.0",
    "serverless-step-functions-local": "^0.5.1"
  }
}

Thanks in advance for any help provided!! Cheers!

ferkanzai commented 11 months ago

Not gonna use this anymore, thus closing

jonprice commented 5 months ago

I resolved the "Step Functions Local failed to start with code 1" error by updating Java to version 17