You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The errors are not properly logged, so information is lost.
Example:
{"level":50,"time":1691049579405,"pid":8732,"hostname":"macbook063","name":"jarvisbeta","msg":"Dropping message due to error An API error occurred: missing_scope"}
With proper logging (a test on another error) we could get:
{"level":50,"time":1691049579362,"pid":8732,"hostname":"macbook063","name":"jarvisbeta","err":{"type":"Error","message":"An API error occurred: missing_scope","stack":"Error: An API error occurred: missing_scope\n at platformErrorFromResult (C:\\projects\\blaze-slack-chatops-service\\node_modules\\@slack\\web-api\\src\\errors.ts:108:5)\n at WebClient.apiCall (C:\\projects\\blaze-slack-chatops-service\\node_modules\\@slack\\web-api\\src\\WebClient.ts:280:36)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Promise.all (index 1)","code":"slack_webapi_platform_error","data":{"ok":false,"error":"missing_scope","needed":"channels:read","provided":"app_mentions:read,channels:join,channels:history,chat:write,im:write,im:history,users:read,groups:history,groups:write,mpim:history,mpim:write,im:read,groups:read,mpim:read","response_metadata":{"scopes":["app_mentions:read","channels:join","channels:history","chat:write","im:write","im:history","users:read","groups:history","groups:write","mpim:history","mpim:write","im:read","groups:read","mpim:read"],"acceptedScopes":["channels:read","groups:read","mpim:read","im:read","read"]}}},"msg":"An error occurred while building text: An API error occurred: missing_scope"}
What type of issue is this? (place an x in one of the [ ])
bug
enhancement (feature request)
Requirements (place an x in each of the [ ])
I've read and understood the Contributing guidelines and have done my best effort to follow them.
Description
The errors are not properly logged, so information is lost.
Example:
With proper logging (a test on another error) we could get:
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)I'll create a PR for this.
The text was updated successfully, but these errors were encountered: