ysimonx / node-red-contrib-melcloud

node-red node for mitsubishi with melcloud API
MIT License
15 stars 5 forks source link

TypeError: Cannot read property 'length' of undefined #7

Closed fmonera closed 2 years ago

fmonera commented 2 years ago

Both "melcloud-connect" and "melcloud-device" produces the following error: "TypeError: Cannot read property 'length' of undefined"

To reproduce: [ ][Timestamp]--------[melcloud-connect]--------[msg.payload]

It seems this library is not being able to parse incoming messages, but outgoing messages are fine. I am able to control climate unit, but unable to read it's state with "melcloud-device".

ysimonx commented 2 years ago

Hi @fmonera : As you can see in the following picture, i can not reproduce your issue

Capture d’écran 2022-02-10 à 21 35 07

did you configure the credentials ?

Capture d’écran 2022-02-10 à 21 33 46
fmonera commented 2 years ago

In fact, it works now. I think it must have been some problem on Melcloud's side. Both nodes are working now.

You can close the issue, thanks a lot.

On Thu, Feb 10, 2022 at 9:36 PM ysimonx @.***> wrote:

Hi @fmonera https://github.com/fmonera : As you can see in the following picture, i can not reproduce your issue [image: Capture d’écran 2022-02-10 à 21 35 07] https://user-images.githubusercontent.com/1449867/153492112-c8dadd09-d8a2-4814-a8a2-efee8d646e6c.png

did you configure the credentials ? [image: Capture d’écran 2022-02-10 à 21 33 46] https://user-images.githubusercontent.com/1449867/153491913-a00b7af2-1938-4785-bdc3-7caf42c77dac.png

— Reply to this email directly, view it on GitHub https://github.com/ysimonx/node-red-contrib-melcloud/issues/7#issuecomment-1035482458, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2VRVHXNTAHBIBPUKVVVQDU2QOU3ANCNFSM5OBD7VJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

-- Fernando Monera