-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
message format / encryption problem? #4
Comments
Hmm, pretty apparent I wrote that issue in a bit of a manic condition. Here is a slightly more clear interpretation of what I'm seeing:
Finally, I have built a Dockerfile and some additional config that makes deploying this whole thing a bit easier. All you have to do is pull my docker image and run it in an environment that has the following two configurations:
Any advice on what my real problem is would be greatly appreciated. I can happily upload logs or screenshots or whatever if anyone wants to do some additional investigation with me. Thank you! |
Noob question... I think the "dist" folder is not needed? I deleted it and everything seems to (not) work exactly the same. I've never used TypeScript / ts-node / nodemon before. |
@TonyApuzzo did you get anywhere with this? Seeing the same issue, every payload size is a multiple of 16, so I'm guessing the payloads are encrypted now. |
Sorry I missed this ... no, I never got it working and assume it is encryption getting in the way now. |
Hi, I'm seeing a strange issue in that the loginMessage seems corrupt or maybe encrypted. It is showing up as type
Buffer
instead ofstring
. 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:The text was updated successfully, but these errors were encountered: