vinodsr / node-red-contrib-tuya-smart-device

a node-red module for managing tuya smart devices
https://flows.nodered.org/node/node-red-contrib-tuya-smart-device
MIT License
43 stars 15 forks source link

Version 4.1.1 error Base64 string #66

Closed Matten-Matten closed 2 years ago

Matten-Matten commented 3 years ago

Hey ich möchte einen datenpunkt in Base64 setzen

{
   "dps": 1,
   "set": "fwgAAQF/DgABAH8TAAEB"
}

jedoch mit der Version 4.1.0 wird nur noch ein fehler ausgegeben

TypeError: Converting circular structure to JSON --> starting at object with constructor 'Socket' | property 'parser' -> object with constructor 'HTTPParser' --- property 'socket' closes the circle

ich muss auf node-red-contrib-tuya-smart-device@4.0.2 downgraden

Ich bitte um hilfe

Gruß Matten Matten

vinodsr commented 3 years ago

Can you please update the issue in english ?

Matten-Matten commented 3 years ago

Hey I want to set the following datapoint in Base64 string

{
   "dps": 1,
   "set": "fwgAAQF/DgABAH8TAAEB"
}

That worked great before too, with version 4.1.0 only one error is output

TypeError: Converting circular structure to JSON --> starting at object with constructor 'Socket' | property 'parser' -> object with constructor 'HTTPParser' --- property 'socket' closes the circle

I have to downgrade to version node-red-contrib-tuya-smart-device@4.0.2

please help me so that I can use the new versions.

Best regards Matten Matten

Matten-Matten commented 3 years ago

I have an automatic feeder and the Base64 string is the encoded output of:

vinodsr commented 3 years ago

Can you please share the server logs ..

On Sun, 6 Jun 2021 at 4:16 PM, Matten-Matten @.***> wrote:

I have an automatic feeder and the Base64 string is the encoded output of:

  • feeding time,
  • number of servings,
  • days of the week,
  • activation

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/vinodsr/node-red-contrib-tuya-smart-device/issues/66#issuecomment-855377845, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADQ6OEBLSPKHR5ILQUNKV3TRNGZ5ANCNFSM46EUCONA .

-- Vinod Surendran R tenthsone.com tenthsone.com/adspot (new) tenthsone.com/junk talk.tenthstone.com [beta]

vinodsr commented 3 years ago

Can you please check this in the latest version ? 4.1.1

Matten-Matten commented 3 years ago

Hello, yes I'll check this as soon as possible.

Matten-Matten commented 3 years ago

hello, the same problem in node-red-contrib-tuya-smart-device@4.1.1

TypeError: Converting circular structure to JSON --> starting at object with constructor 'Socket' | property 'parser' -> object with constructor 'HTTPParser' --- property 'socket' closes the circle nothing was written in the log

Gruß Matten Matten

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

Auto closing the issue

Matten-Matten commented 2 years ago

Hallo, Ich habe den Fehler gefunden! Das Node schreibt diesen Fehler, weil die Daten von einem Webinterface kommen. Ich habe die Datenpunkte msg.res und msg.req in der Nachricht entfernt und jetzt funktioniert es.

Gruß Matten Matten


Hello, I found the bug! The node writes this error because the data comes from a web interface. I removed the data points msg.res andmsg.req in the message and now it works.

Greeting Matten Matten