jamesfalkner / microprofile-grafana

This project presents a web frontend to generate Grafana dashboards that show metrics from a MicroProfile application.
36 stars 8 forks source link

TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type undefined #2

Closed hoomb closed 4 years ago

hoomb commented 4 years ago

I'm getting the following error once I click on "Generate over there" button. Even using your sample by clicking on "try an example" causes the same Issue.

[2020-07-16T14:17:50.545Z] ERROR PASSED TO EXPRESS ERROR HANDLER:
[2020-07-16T14:17:50.545Z] TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:125:11)
    at normalizeSpawnArguments (child_process.js:411:3)
    at spawn (child_process.js:545:16)
    at processRequestRaw (/home/myuser/graf/microprofile-grafana/routes.js:53:19)
    at router.post (/home/myuser/graf/microprofile-grafana/routes.js:30:10)
    at Layer.handle [as handle_request] (/home/myuser/graf/microprofile-grafana/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/myuser/graf/microprofile-grafana/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/home/myuser/graf/microprofile-grafana/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/home/myuser/graf/microprofile-grafana/node_modules/express/lib/router/layer.js:95:5)
    at /home/myuser/graf/microprofile-grafana/node_modules/express/lib/router/index.js:281:22