potmat / homebridge-google-nest-sdm

A Homebridge plugin for Google Nest devices that uses the Google Smart Device Management API. Supports Cameras, Doorbells, Displays, and Thermostats. Includes support for HomeKit Secure Video.
ISC License
148 stars 17 forks source link

Fix Axios Image Request Issue #112

Closed DannyZolp closed 11 months ago

DannyZolp commented 11 months ago

The issue had to deal with Axios trying to process the ArrayBuffer as a JSON string, which causes the 500 error to be thrown (like in issue https://github.com/potmat/homebridge-google-nest-sdm/issues/97). This was fixed by requesting the image as a base64 string and then processing it on the client.

potmat commented 11 months ago

Added changes directly to master due to code unrelated changes to nearby lines.

potmat commented 11 months ago

Should be included in v1.1.20