Skip to content

Instantly share code, notes, and snippets.

@skylord123
Created February 26, 2025 00:44
Show Gist options
  • Save skylord123/602f67af7946b6cfa9492b33c01f808e to your computer and use it in GitHub Desktop.
Save skylord123/602f67af7946b6cfa9492b33c01f808e to your computer and use it in GitHub Desktop.
Broken "Only send non-2xx responses to Catch node" on httprequest node
[
{
"id": "2b1b688120c2f221",
"type": "group",
"z": "1c601e022887ab51",
"style": {
"stroke": "#3d3e46",
"stroke-opacity": "1",
"fill": "#21222c",
"fill-opacity": "0.5",
"label": true,
"label-position": "nw",
"color": "#f8f8f2"
},
"nodes": [
"12a7d1d5012752d1",
"50284addf76728e8",
"130dd5e66372e26c"
],
"x": 88,
"y": 119,
"w": 584,
"h": 228
},
{
"id": "12a7d1d5012752d1",
"type": "catch",
"z": "1c601e022887ab51",
"g": "2b1b688120c2f221",
"name": "",
"scope": "group",
"uncaught": false,
"x": 190,
"y": 160,
"wires": [
[
"130dd5e66372e26c"
]
]
},
{
"id": "50284addf76728e8",
"type": "group",
"z": "1c601e022887ab51",
"g": "2b1b688120c2f221",
"name": "",
"style": {
"label": true
},
"nodes": [
"146e27fdea538696",
"7ec6b5f373ea752f",
"96fa3c9a2c87c8c8",
"bbf465d773966b45"
],
"x": 114,
"y": 199,
"w": 532,
"h": 122
},
{
"id": "146e27fdea538696",
"type": "http request",
"z": "1c601e022887ab51",
"g": "50284addf76728e8",
"name": "",
"method": "GET",
"ret": "txt",
"paytoqs": "ignore",
"url": "https://httpstat.us/{{{topic}}}",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": true,
"headers": [],
"x": 390,
"y": 240,
"wires": [
[
"96fa3c9a2c87c8c8"
]
]
},
{
"id": "7ec6b5f373ea752f",
"type": "inject",
"z": "1c601e022887ab51",
"g": "50284addf76728e8",
"name": "",
"props": [
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "200",
"x": 210,
"y": 240,
"wires": [
[
"146e27fdea538696"
]
]
},
{
"id": "96fa3c9a2c87c8c8",
"type": "debug",
"z": "1c601e022887ab51",
"g": "50284addf76728e8",
"name": "debug",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 550,
"y": 240,
"wires": []
},
{
"id": "bbf465d773966b45",
"type": "inject",
"z": "1c601e022887ab51",
"g": "50284addf76728e8",
"name": "",
"props": [
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "500",
"x": 210,
"y": 280,
"wires": [
[
"146e27fdea538696"
]
]
},
{
"id": "130dd5e66372e26c",
"type": "debug",
"z": "1c601e022887ab51",
"g": "2b1b688120c2f221",
"name": "http request error",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 370,
"y": 160,
"wires": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment