Giter Site home page Giter Site logo

Crash on Backup about homebridge-server HOT 10 CLOSED

gismo141 avatar gismo141 commented on June 5, 2024
Crash on Backup

from homebridge-server.

Comments (10)

Fonta avatar Fonta commented on June 5, 2024 1

This explains a little bit i guess: http://i.imgur.com/tNhZHM1.png
My config file is located at /var/homebridge/config.json

from homebridge-server.

gismo141 avatar gismo141 commented on June 5, 2024 1

Oh yes, I thinks I know the problem.

It seems I've forgotten one line when I changed the way of using the config-file - I'll push an update asap!

from homebridge-server.

Fonta avatar Fonta commented on June 5, 2024 1

1.0.20 is the version with the fix.
I just gave the following command and it updated.
sudo npm install -g homebridge-server --unsafe-perm

from homebridge-server.

gismo141 avatar gismo141 commented on June 5, 2024 1

Thanks @f0nt4 and @johnypony3 for the feedback!

from homebridge-server.

Fonta avatar Fonta commented on June 5, 2024

Thanks in advance! 👍

from homebridge-server.

johnypony3 avatar johnypony3 commented on June 5, 2024

Can confirm this issue, here's the log.
Thank you for this awesome plugin.

├─┬ [email protected]
│ └─┬ [email protected]

/usr/local/lib/node_modules/homebridge-server/index.js:315
fs.writeFile(configPath + '/config.json.bak', newConfig, "utf8", function(err, data) {
^
ReferenceError: configPath is not defined
at saveConfig (/usr/local/lib/node_modules/homebridge-server/index.js:315:26)
at Server.handleRequest (/usr/local/lib/node_modules/homebridge-server/index.js:430:17)
at emitTwo (events.js:106:13)
at Server.emit (events.js:191:7)
at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:547:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)

@f0nt4: i would suggest that for text based postings, you do not use images, because sometimes they contain terms that the dev might need to search for and it would be helpful to have the ability of copying text. furthermore, there are better ways of posting images where they will come up in the request/post. im not knocking you, you def provided all the proper data, these are just observations/suggestions

from homebridge-server.

gismo141 avatar gismo141 commented on June 5, 2024

Sorry for the late fix - it should work now without crashing :)
If not, just reopen that issue.

from homebridge-server.

johnypony3 avatar johnypony3 commented on June 5, 2024

Confirmed, this fixes the issue. Thanks @gismo141
My earlier comment was due to latency on npmjs.com's site, it did not update to .20 until i posted here.

from homebridge-server.

Fonta avatar Fonta commented on June 5, 2024

Nice!
Indeed thanks @gismo141 for the fix!

from homebridge-server.

johnypony3 avatar johnypony3 commented on June 5, 2024

@f0nt4 re: missing jquery
pull request made, follow here: #19

from homebridge-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.