cbruegg / packetloss-watchdog

A workaround for the Vodafone Station's packet loss issue
MIT License
37 stars 3 forks source link

"mySalt" is not defined. (createLoginDataJs#3) #2

Open theotherp opened 4 years ago

theotherp commented 4 years ago

Release v0.1.3

Script attempted a restart but got this error:

[2020-05-18T05:00:01.119661300] Could not restart router! Reason:
org.mozilla.javascript.EcmaError: ReferenceError: "mySalt" is not defined. (createLoginDataJs#3)
        at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4236)
        at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4214)
        at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:4304)
        at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1924)
        at org.mozilla.javascript.gen.createLoginDataJs_12._c_createLoginData_0(createLoginDataJs:3)
        at org.mozilla.javascript.gen.createLoginDataJs_12.call(createLoginDataJs)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3545)
        at org.mozilla.javascript.gen.createLoginDataJs_12.call(createLoginDataJs)
        at MainKt$restartRouterInternal$4.invokeSuspend(Main.kt:290)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:825)

Full log attached. Thank you.

log.txt

cbruegg commented 4 years ago

Strange, seems like your router either performs encryption differently or not at all. Can you check what this page says for you? For reference, here's what it looks like for me:

grafik

theotherp commented 4 years ago

See here:

router

https://github.com/diveflo/arris-tg3442-reboot seems to support my router. Perhaps you could take a look. Otherwise I'll may just run that script every night.