Error 503 Bad Gateway

When I access the api gateway endpoint I get error 503 bad gateway. when viewing the logs I see the following error
Unable to import module ‘handlers/manage-config’: Error
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/var/task/core/AutoScaleConfigRepository.js:4:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

What does your serverless.yml look like?

It appears that the hander cannot be found on the path specified (‘handlers/manage-config’)

HI David…

Thanks for the reply:

    handler: handlers/manage-config.load
      - http:
          path: xxxxxxxxxxxx
          method: GET
          private: true

Can you confirm you have a file handlers/manage-config.js relative to the folder with your serverless.yml and that it exports a function called load?

Sounds like the paths are incorrect. Can you provide a pull link to the project?

Like @buggy mentions it looks like the code path is not matching up correctly.