Consumed-thing node does not auto-fetch TD from tdLink on import/deploy
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Área
- tooling
Línea de trabajo
Reproduce el flujo de ejemplo importándolo o desplegándolo con solo tdLink establecido en cada consumed-thing node y, después, compárelo con la acción Fetch manual. Rastree el ciclo de vida de importación/despliegue del consumed-thing node; se considera terminado cuando el TD se obtiene automáticamente y los nodes subscribe-event e invoke-action posteriores ya no fallan.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When importing a Node-RED flow that uses the node-red-node-wot "consumed-thing" node with only the tdLink set (and an empty td field), the node does not automatically fetch the Thing Description (TD) from the provided URL on import or deploy. This results in downstream nodes (such as subscribe-event or invoke-action) failing with errors like:
TypeError: Cannot read properties of null (reading 'addUpdateTDListener') at new subscribeEventNode ...
Example workflow:
[
{
"id": "a18841fe05744488",
"type": "tab",
"label": "WashingMachine-LEDs-Blink",
"disabled": false,
"info": "",
"env": []
},
{
"id": "b1e2c3d4e5f60718",
"type": "consumed-thing",
"tdLink": "http://192.168.0.172:8082/washingmachine",
"td": "",
"http": true,
"ws": false,
"coap": false,
"mqtt": false,
"opcua": false,
"modbus": false,
"basicAuth": false,
"username": "",
"password": ""
},
{
"id": "c2f3e4d5a6b70819",
"type": "consumed-thing",
"tdLink": "http://192.168.0.172:8083/leds",
"td": "",
"http": true,
"ws": false,
"coap": false,
"mqtt": false,
"opcua": false,
"modbus": false,
"basicAuth": false,
"username": "",
"password": ""
},
{
"id": "d3e4f5a6b7c80920",
"type": "subscribe-event",
"z": "a18841fe05744488",
"name": "WashingMachine finishedCycle",
"topic": "",
"thing": "b1e2c3d4e5f60718",
"event": "finishedCycle",
"x": 180,
"y": 160,
"wires": [["e4f5a6b7c8d91021"]]
},
{
"id": "e4f5a6b7c8d91021",
"type": "invoke-action",
"z": "a18841fe05744488",
"name": "Blink LEDs",
"topic": "",
"thing": "c2f3e4d5a6b70819",
"action": "blink",
"uriVariables": "{}",
"x": 420,
"y": 160,
"wires": [["f5a6b7c8d9e01122"]]
},
{
"id": "f5a6b7c8d9e01122",
"type": "debug",
"z": "a18841fe05744488",
"name": "LEDs blinked",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 670,
"y": 160,
"wires": []
}
]
Expected behavior:
On import or deploy, the consumed-thing node should automatically fetch the TD from the tdLink without manual intervention.
Actual behavior:
The TD is not fetched automatically. I have to manually open the consumed-thing node and click "fetch" to populate the TD.
Additional context:
This makes it difficult to automate flow generation and deployment. Embedding the full TD in the flow is a workaround, but increases flow size significantly. Please consider making the node auto-fetch the TD from tdLink on deploy/import, or provide an option to do so.
- Lenguaje dominante
- HTML
- Estrellas
- 6
- Forks
- 7
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eclipse-thingweb/node-red
-
Consumer Flow Creating IssuesAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
eclipse-thingweb/node-red#19 · 7 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
eclipse-thingweb/node-red#15 · 1 reacción ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
eclipse-thingweb/node-red#11 · 6 comentarios ·
-
Discovery UsageAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
Todos los issues de eclipse-thingweb/node-red
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ScoopInstaller/Extras#18848 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nuxt-modules/mcp-toolkit#364 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
chef/mixlib-shellout#287 ·