Homebridge stopped working - Error: Cannot create a string longer than 0xffffff0 characters
See original GitHub issueI had Homebridge working for a while and suddenly it stopped working giving errors below. I initially thought it might an issue with one of the plug-ins or accessories, so unistalled all of them and removed the config.json and still see the same error
[12/4/2020, 23:13:47] Error: Cannot create a string longer than 0xffffff0 characters
at Object.slice (buffer.js:606:37)
at Buffer.toString (buffer.js:803:14)
at Object.readFileSync (fs.js:408:41)
at LocalStorage.parseDirSync (/usr/lib/node_modules/homebridge/node_modules/node-persist/src/local-storage.js:637:35)
at LocalStorage.parseDataDirSync (/usr/lib/node_modules/homebridge/node_modules/node-persist/src/local-storage.js:572:21)
at LocalStorage.initSync (/usr/lib/node_modules/homebridge/node_modules/node-persist/src/local-storage.js:145:14)
at HAPStorage.storage (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/model/HAPStorage.ts:23:25)
at Function.HAPStorage.storage (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/model/HAPStorage.ts:11:26)
at Function.AccessoryInfo.load (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/model/AccessoryInfo.ts:204:28)
at Bridge.Accessory._this.publish (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:890:41)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Developers - Homebridge stopped working - Error: Cannot create a ...
Homebridge stopped working - Error: Cannot create a string longer than 0xffffff0 characters.
Read more >Cannot create a string from buffer longer than 0xffffff0 characters
I'm closing this as working as expected. It's indeed not possible to create strings that long, the limit is just shy of 256...
Read more >Cannot create a string longer than 0x1fffffe8 characters in ...
I'm creating a video player application and ...
Read more >ERROR: Cannot create a string longer than 0x3fffffe7 characters
I am using the FTP download node and I have a zip file I am trying to download and I get the following...
Read more >Cannot create a string longer than - Edge Impulse Forum
Error while loading features: Model could not be read: Cannot create a string longer than 0x1fffffe8 characters.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
no need. Already tracked that for our next release
haha, fair point, do you want me to re-open the issue?