huchenme / github-trending-api

:octocat: The missing APIs for GitHub trending projects and developers 📈
https://ghapi.huchen.dev/
MIT License
760 stars 107 forks source link

API is borken #151

Open zhuowenli opened 3 years ago

zhuowenli commented 3 years ago
{"level":"error","message":"End - Error:"}
{"errorMessage":"err.toJSON is not a function","errorType":"TypeError","stackTrace":["error (/home/zhuowenli/github-trending-api/src/functions/utils/response.js:22:30)","Object.exports.handler (/home/zhuowenli/github-trending-api/src/functions/repositories.js:15:5)","processTicksAndRejections (internal/process/task_queues.js:97:5)"],"level":"error"}
Response with status 500 in 1093 ms.
◈ Error during invocation:  {
  errorMessage: 'err.toJSON is not a function',
  errorType: 'TypeError',
  stackTrace: [
    'error (/home/zhuowenli/github-trending-api/src/functions/utils/response.js:22:30)',
    'Object.exports.handler (/home/zhuowenli/github-trending-api/src/functions/repositories.js:15:5)',
    'processTicksAndRejections (internal/process/task_queues.js:97:5)'
  ],
  level: 'error',
  [Symbol(level)]: 'error',
  [Symbol(message)]: '{"errorMessage":"err.toJSON is not a function","errorType":"TypeError","stackTrace":["error (/home/zhuowenli/github-trending-api/src/functions/utils/response.js:22:30)","Object.exports.handler (/home/zhuowenli/github-trending-api/src/functions/repositories.js:15:5)","processTicksAndRejections (internal/process/task_queues.js:97:5)"],"level":"error"}'
}