t4qjXH8N / ioBroker.google-sharedlocations

An ioBroker-adapter for retrieving shared locations from Google
MIT License
60 stars 10 forks source link

Could not parse location data. Probably authentication error. Please check cookie. #48

Open raintonr opened 1 year ago

raintonr commented 1 year ago

Looks like the response format could have changed slightly.

Fixed if one changes this...

        const locationdata = JSON.parse(response.data.split('\n').slice(1, -1).join(''));

... to this:

        const locationdata = JSON.parse(response.data.split('\n')[1]);