getappmap / appmap-js

Client libraries for AppMap
48 stars 17 forks source link

ENOENT appmap/package.json #871

Open lachrist opened 1 year ago

lachrist commented 1 year ago

Not sure what this is. @dustinbyrne can you tell whether this is our fault or not?

https://portal.azure.com/#view/Microsoft_OperationsManagementSuite_Workspace/Logs.ReactView/resourceId/%2Fsubscriptions%2Fa4af4729-21ee-4e0a-953c-33cc9db5295c%2Fresourcegroups%2Fvscode-extension%2Fproviders%2Fmicrosoft.insights%2Fcomponents%2Fvscode-extension-analytics/source/AIExtension.SearchV2/query/union%20customEvents%20%7C%20where%20timestamp%20%3E%3D%20datetime(%222022-11-23T18%3A47%3A07.145Z%22)%20and%20timestamp%20%3C%3D%20(datetime(%222022-11-23T18%3A47%3A07.145Z%22))%20and%20session_Id%20%3D%3D%20%2247fff847-b495-432b-bdf6-f78ea7c04fb91669229135177%22%7C%20extend%20logLen%3Dstrlen(customDimensions%5B%22appmap.cli.log%22%5D)%2Clog%3DcustomDimensions%5B%22appmap.cli.log%22%5D%2Cexception%3DcustomDimensions%5B%22appmap.debug.exception%22%5D%7C%20project-reorder%20timestamp%2Cname%2Cuser_Id%2ClogLen%2Clog%2Cexception

lachrist commented 1 year ago

Happened some more

https://portal.azure.com/#view/Microsoft_Azure_Monitoring_Logs/LogsBlade/resourceId/%2Fsubscriptions%2Fa4af4729-21ee-4e0a-953c-33cc9db5295c%2Fresourcegroups%2Fvscode-extension%2Fproviders%2Fmicrosoft.insights%2Fcomponents%2Fvscode-extension-analytics/source/AIExtension.SearchV2/query/union%20customEvents%20%7C%20where%20timestamp%20%3E%3D%20datetime(%222022-11-23T23%3A30%3A57.095Z%22)%20and%20timestamp%20%3C%3D%20(datetime(%222022-11-23T23%3A30%3A57.095Z%22))%20and%20session_Id%20%3D%3D%20%2239dd3774-cd33-4a72-8486-16401eccf2021669246237460%22%7C%20extend%20logLen%3Dstrlen(customDimensions%5B%22appmap.cli.log%22%5D)%2Clog%3DcustomDimensions%5B%22appmap.cli.log%22%5D%2Cexception%3DcustomDimensions%5B%22appmap.debug.exception%22%5D%7C%20project-reorder%20timestamp%2Cname%2Cuser_Id%2ClogLen%2Clog%2Cexception

symwell commented 1 year ago

This type of error happens a lot

Error: ENOENT: no such file or directory, open 'c:\Users\test\AppData\Roaming\Code\User\globalStorage\appland.appmap\node_modules\@appland\appmap\package.json'

58 times in the last 24hrs

union customEvents
| where name contains "debug/exception"
| extend
    logLen=strlen(customDimensions["appmap.cli.log"]),
    log=customDimensions["appmap.cli.log"],
    exception=customDimensions["appmap.debug.exception"]
| where exception contains "ENOENT"
| project-reorder timestamp, name, user_Id, logLen, log, exception

It's coming from here. It seems it's excluded from Slack messages.

dustinbyrne reports:

It's an error which is ultimately caused by failure to fetch dependencies, e.g. a network error or similar. Failure to fetch dependencies has it's own exception, so the error described is redundant and not actually a root cause.

The network errors were causing a lot of noise so they've been disabled along with this error they were cascading into