Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃敟Site down #538

Open
gdibble opened this issue Mar 5, 2021 · 3 comments
Open

馃敟Site down #538

gdibble opened this issue Mar 5, 2021 · 3 comments

Comments

@gdibble
Copy link

gdibble commented Mar 5, 2021

Response for homepage etcetera

A server error has occurred
500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: sfo1::gdg9v-1614924152430-6f6450c1ce11
@kapik
Copy link

kapik commented Mar 15, 2021

Project down ?

@torrayne
Copy link

It looks like a dependency error? Logs
2021-03-15T18:16:06.982Z undefined ERROR Cannot find module 'hapi-qs'Require stack:- /var/task/node_modules/glue/lib/index.js- /var/task/index.js- /var/task/server.js- /var/task/___now_launcher.js- /var/runtime/UserFunction.js- /var/runtime/index.js2021-03-15T18:16:06.982Z undefined ERROR Did you forget to add it to "dependencies" inpackage.json?RequestId: 531b34c7-1a1e-4ce1-838a-2aa06265cffe Error: Runtime exited with error: exit status 1Runtime.ExitError

@gdibble
Copy link
Author

gdibble commented Mar 16, 2021

Looks like we have hapi-qs in the package.json

"hapi-qs": "^1.1.2",

~~

Upon running npm i I got this error:
npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.

I tried downgrading the dev-dep with npm i ajv@^5 --save-dev (from ^6.12.6 to ^5.5.2)
Running npm i then resulted in:
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

I tried running the project with this unfortunate windoze error:

$ npm start

> jsperf.com@2.0.0 start D:\dev\jsperf.com
> node server.js

D:\dev\jsperf.com\config.js:40
  throw new Error(`${result.error.details[0].path[0]} environment variable is missing`);
  ^

Error: GITHUB_CLIENT_SECRET environment variable is missing
    at Object.<anonymous> (D:\dev\jsperf.com\config.js:40:9)
    at Module._compile (internal/modules/cjs/loader.js:936:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
    at Function.Module._load (internal/modules/cjs/loader.js:703:12)
    at Module.require (internal/modules/cjs/loader.js:830:19)
    at require (internal/modules/cjs/helpers.js:68:18)
    at Object.<anonymous> (D:\dev\jsperf.com\manifest.js:3:14)
    at Module._compile (internal/modules/cjs/loader.js:936:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! jsperf.com@2.0.0 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the jsperf.com@2.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I'm blocked by my OS and the environment variable. Can anyone else try/verify? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants