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
when a http action is used that sends a request to populate certain variables, and the request times out, the bot currently returns Variable '<variable name>' has not been defined for any variables that do not get populated. an internal request was filed for the desire to provide a more meaningful message.
desired functionality:
change default message (<action_name> action timed out was suggested)
per action customization (adding timeout_message field)
silently fail if timeout_message is empty string
to note:
"not defined" message does not exclusively happen when requests time out, so perhaps the default message should be something else, or maybe there is a need to define messages for other scenarios, such as when an API returns any non-200 messages.
example rules file:
name: testactive: truerespond: testactions:
- name: test ruletype: GETurl: http://somehost.example.com/endpointexpose_json_fields:
output: |- {{if and (ge ${_raw_http_status} 200) (lt ${_raw_http_status} 300) }} {{.message}} {{else}} request failed with http status code `${_raw_http_status}` {{end}}timeout: 1format_output: "${output}"direct_message_only: falsehelp_text: "Sample rules to reproduce Variable `output` has not been defined issue."include_in_help: true
The text was updated successfully, but these errors were encountered:
wass3rw3rk
changed the title
add ability to customize Variable 'output' has not been defined message
add ability to customize Variable '<variable name>' has not been defined message
Sep 17, 2024
when a http action is used that sends a request to populate certain variables, and the request times out, the bot currently returns
Variable '<variable name>' has not been defined
for any variables that do not get populated. an internal request was filed for the desire to provide a more meaningful message.desired functionality:
<action_name> action timed out
was suggested)timeout_message
field)timeout_message
is empty stringto note:
"not defined" message does not exclusively happen when requests time out, so perhaps the default message should be something else, or maybe there is a need to define messages for other scenarios, such as when an API returns any non-200 messages.
example rules file:
The text was updated successfully, but these errors were encountered: