Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Technical info: Either the DB "api/db/db.json" does not exist, or there is no ["server"] index within it #67

Closed
webdevbrian opened this issue Oct 15, 2021 · 3 comments

Comments

@webdevbrian
Copy link

Few things here (probably related to the documentation and elaboration on specifics):

  1. the db.json file exists, however has dummy content in it:
{
    "token": {
        "server-1": "server-1 secret token",
        "second-server": "second-server secret token",
        "229th-server": "229th-server secret token"
    }
}

What would be useful here is elaboration on the "server" index, which the base file does not reference (seen from this error mention):

Technical info: Either the DB "api/db/db.json" does not exist, or there is no ["server"] index within it

  1. Elaboration in the tokens.json file (that you need to create based off the example) would probably be useful to indicate what SLSC is, and more specifically the examples you include, how they're pertinent:
  "SLSC": {
    "server-1": "server-1 secret token",
    "second-server": "second-server secret token",
    "229th-server": "229th-server secret token"
  },

Finally, it should also be noted this will not fire up without the use of nvm and specifically node version 8 at the moment.

@mrSkortch
Copy link
Owner

I assume you are talking about this other script https://github.com/Bango1999/SLSC?

I'm not involved with that script at all. However part of its functionality can be done directly with slmod as the latest versions of slmod can save a copy of the stats file in json format.

@webdevbrian
Copy link
Author

@mrSkortch - I see, basically it's ambiguous on the SLSC dependency -- for instance, nothing currently gets logged and digging into it, there are SLSC definitions while apparently not "required" ? seems to be made noted that they are (the SLSC token reference in tokens.json. So current running processes are, SLSC, SLMod, SLBot and DCS -- and SLBot indicates there are no active changes (or the "db.json" file not existing, which it does). Debugging further (i.e. using your SLBot_Debug.bat throws this error, but this is for a separate ticket.

app.on('ready', createWindow)
   ^

TypeError: Cannot read property 'on' of undefined

@mrSkortch
Copy link
Owner

Slbot and SLSC aren't mine though. I haven't done anything with either of those scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants