Skip to content

message format / encryption problem? #4

Description

@TonyApuzzo

Hi, I'm seeing a strange issue in that the loginMessage seems corrupt or maybe encrypted. It is showing up as type Buffer instead of string. I've tried decoding it using utf-8, ucs2, and base64 with no luck. I added a bit of logging to my fork. Is it possible that vesync is using TLS now? I don't know what magic # to use to figure that out. The Buffer starts with "ab d7 39 97 ef ..." rather than a nice JSON payload. Maybe this is an issue of versioning? I had to change some versions to get it to run (pushed to my fork and branch). I put a npm-shrinkwrap in my fork to maybe help with debugging?

I also have a Dockerfile to simplify things (it automatically looks up the hostname directly to 8.8.8.8 and puts it into /etc/hosts).

I've tried this with bare-metal and Docker and get the same errors.

My fork is here branch feature/docker

To run in Docker, arrange to have your docker host be the DNS resolution for server2.vesync.com and then run:

docker pull tonyapuzzo/vesync-wsproxy
docker run -d --name=vprox --rm -p 16522:16522 -p 17273:17273 tonyapuzzo/vesync-wsproxy
docker logs vprox -f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions