Commit 9fb46b08 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Handle promise cancelation case when add login

parent ddfae815
Pipeline #9693 failed with stages
in 0 seconds
...@@ -67,6 +67,10 @@ ...@@ -67,6 +67,10 @@
.push(undefined, function (error) { .push(undefined, function (error) {
return gadget.getTranslationList(["Unknown Error, please open a ticket."]) return gadget.getTranslationList(["Unknown Error, please open a ticket."])
.push(function (error_message) { .push(function (error_message) {
if (error.target === undefined) {
// received a cancelation so just skip
return gadget;
}
return jIO.util.readBlobAsText(error.target.response) return jIO.util.readBlobAsText(error.target.response)
.then(function (evt) { .then(function (evt) {
if (error.target.status === 406) { if (error.target.status === 406) {
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>984.13871.46211.53043</string> </value> <value> <string>984.18432.37885.8345</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1590759622.51</float> <float>1591033199.4</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment