Vielen Dank für diesen Hinweis!
Bei Verwendung von Chrome (hier auf Linux) erhalte ich gleich nach dem Klicken auf "Login":
TypeError: Cannot read property 'error' of undefined
at app.js:2
at i (app.js:7)
at app.js:7
at n.$digest (app.js:7)
at n.$apply (app.js:7)
at g (app.js:7)
at r (app.js:7)
at XMLHttpRequest.w.onload (app.js:7) "Possibly unhandled rejection: {}"
app.js:2 ist eine sehr lange Zeile im "minifizierten" Javascript. Chrome hat eine Funktion, um es lesbarer zu formatieren, was dann ergibt, dass der Fehler in folgendem Code auftaucht:
- Code: Select all
d.login(a.formData.username, a.formData.password).then(function() {
d.loadStartPage()
})["catch"](function(b) {
32 == b.data.error ? a.shopUrl = b.data.error_message : 53 == b.data.error ? (a.emailSent = !0,
a.waitingForActivation || (a.waitingForActivation = !0,
f())) : a.errorMessage = b.data.error_message
})
d.H. offenbar wird die "catch" Klausel aufgerufen, und wenn dann "32 == b.data.error" abgefragt wird, ist offenbar b.data undefined.
Der letzte erfolgte Netzwerkzugriff ist ein XMLHttpRequest nach https://hostname-unseres-teamdrive-servers:4443/login mit dem Payload {username: "...", password: "..."} (wobei natürlich eine korrekte Kombination aus Username und Passwort drin ist). Die Antwort, die drauf kommt, erscheint sinnvoll:
{ "address" : { "email" : "...", "icon" : "self", "id" : 1, "initials" : "...", "name" : "...", "profile" : { "email" : "...", "mobile" : "", "phone" : "" } }, "apiUrl" : "/", "initials" : "...", "isLocal" : true, "isLoginRequired" : false, "username" : "...", "websocketUrl" : ":1" }
(überall da wo "..." steht, standen sinnvolle / korrekte Informationen über den verwendeten Benutzer)
Mit Firefox habe ich ein ähnliches Bild: Die Javascript-Fehlermeldung nach dem Login ist:
TypeError: b.data is null
Stack-Trace:
[17]</b.exports</a.login/<@https://hostname-unseres-teamdrive-servers:4443/scripts/app.js:2:313
i@https://hostname-unseres-teamdrive-servers:4443/scripts/app.js:7:18856
k/<@https://hostname-unseres-teamdrive-servers:4443/scripts/app.js:7:19302
Lc/this.$get</n.prototype.$digest@https://hostname-unseres-teamdrive-servers:4443/scripts/app.js:7:25131
Lc/this.$get</n.prototype.$apply@https://hostname-unseres-teamdrive-servers:4443/scripts/app.js:7:27105
g@https://hostname-unseres-teamdrive-servers:4443/scripts/app.js:7:924
r@https://hostname-unseres-teamdrive-servers:4443/scripts/app.js:7:3495
Wb/</w.onload@https://hostname-unseres-teamdrive-servers:4443/scripts/app.js:7:3919
Possibly unhandled rejection: {} app.js:7:12524
Auch hier ist das letzte was ich auf dem Netzwerk sehe ein Post nach /login mit korrekt aussehenden Eingabe- und Ausgabeparametern.