8000 Provide more meaningful messages in `sdk.requests.send` errors · Issue #1195 · caido/caido · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Provide more meaningful messages in sdk.requests.send errors #1195
@csalazar

Description

@csalazar

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help us know what to work on
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

Bug description

In a workflow, calling sdk.requests.send() in a request taking more than 30s will return the message OperationFailed(Unknown error). According to the logs, it seems that the reason is a default timeout of 30s, so the message could be more specific i.e. OperationFailed(timeout).

How to reproduce

A call to await sdk.requests.send(spec) with a spec that takes more than 30 seconds to reply will show in the logs:

2024-09-06T15:41:35.766045Z ERROR executor:0|arbiter:2 service|task: Task (19) failed: User(WorkflowError { reason: ExecutionError, node_id: Some("2"), message: "Runtime error\n\nCaused by:\n    Failed to send request: OperationFailed(Unknown error) (l:145,c:43)\n    \n    Stack backtrace:\n        at run (workflow:145:43)\n    " })

Environment & setup

OS: Mac OS
OS version: 14.5
Caido client: Caido Desktop
Caido version: 0.40.0

Metadata

Metadata

Assignees

Labels

component:backendRelated to the Caido backendeffort:medium1–2 days of work. Moderate changes that may require a design meeting. Handled by one developer.topic:dxtopic:sdkRelated to plugin and workflow SDKs

Projects

Status

Released

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0