st-swanny / smartthings

My smartthings projects
48 stars 128 forks source link

Synology Connect error java.lang.RuntimeException #9

Open cplensdorf opened 5 years ago

cplensdorf commented 5 years ago

Hoping anyone can assist...I have been able to install the Synology Connect App but am unable to connect to my Synology server. See the following error in the log:

‎4‎:‎28‎:‎54‎ ‎PM: error java.lang.RuntimeException: bad character in base64 value @line 831 (locationHandler)

Not sure where to go. Not a programmer.

Thx.

zzarbi commented 5 years ago

@cplensdorf I notice the same issue. If I found a solution I will post it here.

zzarbi commented 5 years ago

I may have found the issue. It looks like Smartthings added a limit of how much data you can pass to an event. Request that goes through the hub happened to be handle as HubEvents in locationHandler(). The data returned is truncated: https://community.smartthings.com/t/event-data-limits/154109

I'm not sure that we can get an easy fix.

zzarbi commented 5 years ago

After some more research it seems that the data is truncated for some other reason. I will need to look into Synology API to see if we can reduce the number of data it returns

cplensdorf commented 5 years ago

Thx zzarbi.. anything you can do would be appreciated!

zzarbi commented 5 years ago

@cplensdorf I found a solution by using a newer version of the Synology API in #10. It's only one line it works for me. However I suspect you might need to have the latest version of Surveillance Station.

baltazarmitch commented 4 years ago

@cplensdorf I found a solution by using a newer version of the Synology API in #10. It's only one line it works for me. However I suspect you might need to have the latest version of Surveillance Station.

How do I use the newer API? I updated my surveillance station but still can't find cameras. Sorry for my ignorance, I no nothing about code.

zzarbi commented 4 years ago

@baltazarmitch you can look at this open PR: https://github.com/st-swanny/smartthings/pull/10 and then you'll need to update the code in Smartthings

cscashby commented 3 years ago

I still get this error (after more device details are returned than before) with the PR #10 fix :(

java.lang.RuntimeException: bad character in base64 value @line 416 (locationHandler)