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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

summarizeService.summarize is not a function #722

Closed
jcfiorenzano opened this issue Mar 13, 2020 · 6 comments
Closed

summarizeService.summarize is not a function #722

jcfiorenzano opened this issue Mar 13, 2020 · 6 comments

Comments

@jcfiorenzano
Copy link

requests
| where timestamp >= ago(30d)
| where resultCode == 500
| join (
exceptions
| where timestamp >= ago(30d)
) on operation_Id
| where outerMessage contains "summarizeService.summarize is not a function"

This have been happening 11 times in the last 30 days

@nellshamrell
Copy link
Contributor

The interesting thing is that all of them happened within the same 30 min (and these are the only times it happened within the past 30 days.

image

@nellshamrell
Copy link
Contributor

I ran this API call:

curl http://api.clearlydefined.io/harvest/git/github/alpinelinux/aports/b8229586a20eea5fc0f782a383ef666b6a60e054/scancode/3.2.2

And am not seeing the same error show up in the logs. So I think this may have been a transient infrastructure issue. Seeing what else may have been going on around that time.

@nellshamrell
Copy link
Contributor

And here's the details from one of the error on 1/5/2021

| 0 | {"parsedStack"
  :[{"assembly":"at get (/opt/service/routes/harvest.js:26:45)",
  "method":"get","level":0,"line":26,"
  fileName":"/opt/service/routes/harvest.js"},{"assembly":"
  at processTicksAndRejections (internal/process/task_queues.js:97:5)",
 "method":"processTicksAndRejections",
  "level":1,
  "line":97,
  "fileName":"internal/process/task_queues.js"},
  {"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5",
  "method":"<no_method>",
  "level":2,"
  line":6,
  "fileName":"async /opt/service/middleware/asyncMiddleware.js"}],
  "severityLevel":"Error",
  "outerId":"0",
  "message":"summarizeService.summarize is not a function",
  "type":"TypeError",
  "id":"0"}
-- | -- | --
  | id0 messagesummarizeService.summarize is not a function 
  outerId0
  parsedStack[{"assembly":"at get (/opt/service/routes/harvest.js:26:45)",
  "method":"get",
  "level":0,"line":26,
  "fileName":"/opt/service/routes/harvest.js"},
  {"assembly":"at processTicksAndRejections (internal/process/task_queues.js:97:5)",
  "method":"processTicksAndRejections",
  "level":1,"
  line":97,"
  fileName":"internal/process/task_queues.js"},
  {"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5",
  "method":"<no_method>",
  "level":2,
  "line":6,
  "fileName":"async /opt/service/middleware/asyncMiddleware.js"}]0
  {"assembly":"at get (/opt/service/routes/harvest.js:26:45)",
  "method":"get","
  level":0,"
  line":26,
  "fileName":"/opt/service/routes/harvest.js"}1
  {"assembly":"at processTicksAndRejections (internal/process/task_queues.js:97:5)",
   "method":"processTicksAndRejections",
  "level":1,"line":97,
  "fileName":"internal/process/task_queues.js"}2
  {"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5"
  ,"method":"<no_method>",
  "level":2,
  "line":6,
  "fileName":"async /opt/service/middleware/asyncMiddleware.js"} severityLevelError typeTypeError |   | id | 0 |   | message | summarizeService.summarize is not a function |   | outerId | 0 |   | parsedStack | [{"assembly":"at get (/opt/service/routes/harvest.js:26:45)","method":"get","level":0,"line":26,"fileName":"/opt/service/routes/harvest.js"},{"assembly":"at processTicksAndRejections (internal/process/task_queues.js:97:5)","method":"processTicksAndRejections","level":1,"line":97,"fileName":"internal/process/task_queues.js"},{"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5","method":"<no_method>","level":2,"line":6,"fileName":"async /opt/service/middleware/asyncMiddleware.js"}] |   | 0{"assembly":"at get (/opt/service/routes/harvest.js:26:45)","method":"get","level":0,"line":26,"fileName":"/opt/service/routes/harvest.js"}1{"assembly":"at processTicksAndRejections (internal/process/task_queues.js:97:5)","method":"processTicksAndRejections","level":1,"line":97,"fileName":"internal/process/task_queues.js"}2{"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5","method":"<no_method>","level":2,"line":6,"fileName":"async /opt/service/middleware/asyncMiddleware.js"} |   | 0 | {"assembly":"at get (/opt/service/routes/harvest.js:26:45)","method":"get","level":0,"line":26,"fileName":"/opt/service/routes/harvest.js"} |   | 1 | {"assembly":"at processTicksAndRejections (internal/process/task_queues.js:97:5)","method":"processTicksAndRejections","level":1,"line":97,"fileName":"internal/process/task_queues.js"} |   | 2 | {"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5","method":"<no_method>","level":2,"line":6,"fileName":"async /opt/service/middleware/asyncMiddleware.js"} |   | severityLevel | Error |   | type | TypeError
  | id | 0
  | message | summarizeService.summarize is not a function
  | outerId | 0
  | parsedStack | [{"assembly":"at get (/opt/service/routes/harvest.js:26:45)","method":"get","level":0,"line":26,"fileName":"/opt/service/routes/harvest.js"},{"assembly":"at processTicksAndRejections (internal/process/task_queues.js:97:5)","method":"processTicksAndRejections","level":1,"line":97,"fileName":"internal/process/task_queues.js"},{"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5","method":"<no_method>","level":2,"line":6,"fileName":"async /opt/service/middleware/asyncMiddleware.js"}]
  | 0{"assembly":"at get (/opt/service/routes/harvest.js:26:45)","method":"get","level":0,"line":26,"fileName":"/opt/service/routes/harvest.js"}1{"assembly":"at processTicksAndRejections (internal/process/task_queues.js:97:5)","method":"processTicksAndRejections","level":1,"line":97,"fileName":"internal/process/task_queues.js"}2{"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5","method":"<no_method>","level":2,"line":6,"fileName":"async /opt/service/middleware/asyncMiddleware.js"} |   | 0 | {"assembly":"at get (/opt/service/routes/harvest.js:26:45)","method":"get","level":0,"line":26,"fileName":"/opt/service/routes/harvest.js"} |   | 1 | {"assembly":"at processTicksAndRejections (internal/process/task_queues.js:97:5)","method":"processTicksAndRejections","level":1,"line":97,"fileName":"internal/process/task_queues.js"} |   | 2 | {"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5","method":"<no_method>","level":2,"line":6,"fileName":"async /opt/service/middleware/asyncMiddleware.js"}
  | 0 | {"assembly":"at get (/opt/service/routes/harvest.js:26:45)","method":"get","level":0,"line":26,"fileName":"/opt/service/routes/harvest.js"}
  | 1 | {"assembly":"at processTicksAndRejections (internal/process/task_queues.js:97:5)","method":"processTicksAndRejections","level":1,"line":97,"fileName":"internal/process/task_queues.js"}
  | 2 | {"assembly":"at async /opt/service/middleware/asyncMiddleware.js:6:5","method":"<no_method>","level":2,"line":6,"fileName":"async /opt/service/middleware/asyncMiddleware.js"}
  | severityLevel | Error
  | type | TypeError

@nellshamrell
Copy link
Contributor

I spoke too soon - looks like my request did in fact generate the error, it just took a bit to show up in the logs.

curl http://api.clearlydefined.io/harvest/git/github/alpinelinux/aports/b8229586a20eea5fc0f782a383ef666b6a60e054/scancode/3.2.2

image

So this is reproducible.

@nellshamrell
Copy link
Contributor

This was fixed with #888

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

No branches or pull requests

2 participants