Skip to content

The node status is not cleared in http request node after timeout error #5408

@kazuhitoyokoi

Description

@kazuhitoyokoi

Current Behavior

@osvedman kindly reported this issue in the #5240 (comment).
When the http request node encounters a timeout error, an error message appears in the node status. After the processing of the second request, the node status does not clear and remains "requesting".

current.mp4

This issue is from the http request counting. Currently, the count only decreases when the HTTP request finishes. However, I need the count to decrement when both an error occurs and the HTTP request finishes.

Expected Behavior

The node status should clear in the second request after an error occurs.

expected.mp4

Steps To Reproduce

Import the following example flow

Example flow

[{"id":"77630b119e6e6c22","type":"inject","z":"d3ffb465f9ed0d68","name":"after 5 seconds","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"5","topic":"","payload":"","payloadType":"date","x":160,"y":160,"wires":[["527dab7b0feb5938"]]},{"id":"69e4c8064c83db10","type":"debug","z":"d3ffb465f9ed0d68","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":540,"y":80,"wires":[]},{"id":"1e88f4b3369dcba3","type":"delay","z":"d3ffb465f9ed0d68","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":300,"y":220,"wires":[["1c8365e8098f7783"]]},{"id":"b68bc1a18c88446d","type":"http in","z":"d3ffb465f9ed0d68","name":"","url":"/url","method":"get","upload":false,"skipBodyParsing":false,"swaggerDoc":"","x":140,"y":220,"wires":[["1e88f4b3369dcba3"]]},{"id":"1c8365e8098f7783","type":"http response","z":"d3ffb465f9ed0d68","name":"","statusCode":"","headers":{},"x":450,"y":220,"wires":[]},{"id":"527dab7b0feb5938","type":"http request","z":"d3ffb465f9ed0d68","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://localhost:1880/url","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":390,"y":80,"wires":[["69e4c8064c83db10"]]},{"id":"8c7b8784dbf5b032","type":"group","z":"d3ffb465f9ed0d68","name":"msg.requestTimeout=1000","style":{"label":true},"nodes":["5a7d0660552345c2"],"x":34,"y":39,"w":232,"h":82},{"id":"5a7d0660552345c2","type":"inject","z":"d3ffb465f9ed0d68","g":"8c7b8784dbf5b032","name":"after 1 second","props":[{"p":"payload"},{"p":"requestTimeout","v":"1000","vt":"num"}],"repeat":"","crontab":"","once":true,"onceDelay":"1","topic":"","payload":"","payloadType":"date","x":160,"y":80,"wires":[["527dab7b0feb5938"]]}]

Environment

  • Node-RED version: v4.1.2
  • Node.js version: v22.17.1
  • npm version: v10.9.2
  • Platform/OS: macOS 26.0.1 (25A362) on Apple M1 Macbook Air
  • Browser: Google Chrome Version 142.0.7444.176 (Official Build) (arm64)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions