MycroftAI / mycroft-core

Mycroft Core, the Mycroft Artificial Intelligence platform.
https://mycroft.ai
Apache License 2.0
6.52k stars 1.27k forks source link

Unable to to save settings on home.mycroft.ai: Javascript error TypeError: e is null #1736

Closed mathiasconradt closed 6 years ago

mathiasconradt commented 6 years ago

It's not possible to save settings on home.mycroft.ai. Tested on Chrome and Firefox (latest versions) on Ubuntu Linux / Gnome.

JS error:

TypeError: e is null[Learn More] bundle.js:31:771
value
https://home.mycroft.ai/build/bundle.js:31:771
value/<
https://home.mycroft.ai/build/bundle.js:31:702
forEach self-hosted:268:13 value
https://home.mycroft.ai/build/bundle.js:31:667
value
https://home.mycroft.ai/build/bundle.js:31:1772
value
https://home.mycroft.ai/build/bundle.js:67:30519
value self-hosted:982:17 l</e.prototype.__emitToSubscription
https://home.mycroft.ai/build/bundle.js:103:22332
l</e.prototype.emit
https://home.mycroft.ai/build/bundle.js:103:22117
value
https://home.mycroft.ai/build/bundle.js:30:6875
value
https://home.mycroft.ai/build/bundle.js:51:16821
value self-hosted:984:17 r
https://home.mycroft.ai/build/bundle.js:9:4418
i
https://home.mycroft.ai/build/bundle.js:9:2753

screenshot from 2018-08-14 21-45-15

forslund commented 6 years ago

Maybe @matheuslima or @chrisveilleux could help out here.

penrods commented 6 years ago

Did this get resolved for you @mathiasconradt ?

mathiasconradt commented 6 years ago

@penrods No, not resolved - has there been an update? Getting this error when trying to save the settings.

image

image

forslund commented 6 years ago

Just out of interest, if you click Advanced and change the Text To Speech setting from the current to something else does that change anything?

Or the same with the Voice setting under basic?

mathiasconradt commented 6 years ago

@forslund When I click on Advanced, I don't even get that far. Just clicking on advanced already throws another JS error. I think there is somebody broken at the basis somewhere with the web app.

I tested it on Firefox and Chrome, just to be sure it's not my browser. Also even tested it on Firefox on Android, same.

image

Clicking on Voice settings in Basic also throws a JS error:

image

In Chrome, I get a bit more details in the log:

bundle.js?master-154:67 Uncaught TypeError: Cannot read property 'ttsSettings' of null
    at t.value (bundle.js?master-154:67)
    at t.value (bundle.js?master-154:67)
    at t.value (bundle.js?master-154:52)
    at Object.r (bundle.js?master-154:9)
    at i (bundle.js?master-154:9)
    at Object.s [as executeDispatchesInOrder] (bundle.js?master-154:9)
    at p (bundle.js?master-154:8)
    at m (bundle.js?master-154:8)
    at Array.forEach (<anonymous>)
    at n (bundle.js?master-154:9)
Uncaught TypeError: Cannot read property 'wakeWord' of undefined
    at t.value (bundle.js?master-154:67)
    at t.value (bundle.js?master-154:67)
    at d.performInitialMount (bundle.js?master-154:24)
    at d.mountComponent (bundle.js?master-154:24)
    at Object.mountComponent (bundle.js?master-154:9)
    at d.performInitialMount (bundle.js?master-154:24)
    at d.mountComponent (bundle.js?master-154:24)
    at Object.mountComponent (bundle.js?master-154:9)
    at Object.updateChildren (bundle.js?master-154:24)
    at m._reconcilerUpdateChildren (bundle.js?master-154:24)
matheuslima commented 6 years ago

@mathiasconradt can you send DM me on Mattermost the email associated with your home account? My user there is matheus-mycroft. With this information, I can see if your account has some problem with the database. Thanks.

mathiasconradt commented 6 years ago

@matheuslima done.

mathiasconradt commented 6 years ago

Support told me regarding https://mycroftai.freshdesk.com/helpdesk/tickets/3969 which is related:

We just released a new version of Mycroft - you can update by leaving it plugged in (will update at the :04 past every hour) or also using the command line: sudo apt-get update && sudo apt-get install mycroft-core

However, this doesn't help much.

I installed mycroft via github clone, not via apt. I just cloned and built the recent dev branch as of now (mycroft-core 18.8.0), and the issue still remains.

Another question: which repos to add so that my Ubuntu finds the package.

forslund commented 6 years ago

I can't see the issue in question sadly but we currently don't have a package for Ubuntu. The one mentioned above must refer to the mark-1 or picroft.

mathiasconradt commented 6 years ago

I don't have mark1 nor picroft. I run it on plain Linux/Ubuntu. Right, therefore I was surprised I should run apt-get install. Anyway, the issue remains. I don't mind changing the password to something else temporarily and giving a mycroft engineer my account info for debugging, as there is nothing confidential in it. Of course not via github comment.

matheuslima commented 6 years ago

I'm working on that now, there's a database inconsistency related to your account and that is breaking your settings.

mathiasconradt commented 6 years ago

@matheuslima I just created a new second account to test it out and indeed, everything works fine with the new account. If you can fix the inconsistencies, that's good. If not; I will shutdown the old account and use the new one instead. Just let me know.

Update: I moved everything over to the new account that's working. If you want, you can close my old account and also close this ticket. It's the one with username: "mathiasconradt-old" and name "Mathias C. (not used anymore)"