Errors when editing Dashboards

I’ve trialed the Azure Web App and recently installed to a server. In both instances, I’m getting errors in the Page Designer and, more importantly, when editing code in a dashboard.

I’m getting the following when editing code for a dashboard:
image

“Request failed with status code 500”

Sometimes I can get around it by refreshing the page, but this doesn’t always work. I haven’t been able to locate logs for this yet, but if someone can point me in the right direction, I’d be more than happy to review those.

Otherwise any solutions would be really appreciated.

Product: PowerShell Universal
Version: 4.0.5

I’m seeing this same error in 4.0.5 when trying to edit pages in my App. The issue appears to be intermittent, as I’m having trouble coming up with consistent steps to reproduce. Sometimes it saves; sometimes it doesn’t.

This is what I see in my browser’s Console when the edit fails to save.

        PUT http://server:5000/api/v1/dashboard/3 500 (Internal Server Error)
(anonymous) @ xhr.js:177
e.exports @ xhr.js:13
e.exports @ dispatchRequest.js:50
Promise.then (async)
l.request @ Axios.js:61
r.forEach.l.<computed> @ Axios.js:87
(anonymous) @ bind.js:9
(anonymous) @ queryClient.tsx:148
f @ runtime.js:64
(anonymous) @ runtime.js:299
(anonymous) @ runtime.js:124
r @ asyncToGenerator.js:3
c @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ queryClient.tsx:126
fn @ mutation.js:129
s @ retryer.js:90
u @ retryer.js:150
t.executeMutation @ mutation.js:123
(anonymous) @ mutation.js:82
Promise.then (async)
t.execute @ mutation.js:81
n.mutate @ mutationObserver.js:83
(anonymous) @ Editor.tsx:233
f @ runtime.js:64
(anonymous) @ runtime.js:299
(anonymous) @ runtime.js:124
r @ asyncToGenerator.js:3
c @ asyncToGenerator.js:25
Promise.then (async)
r @ asyncToGenerator.js:13
c @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ Editor.tsx:165
(anonymous) @ Editor.tsx:598
(anonymous) @ utils.tsx:646
(anonymous) @ utils.tsx:646
(anonymous) @ utils.tsx:646
(anonymous) @ utils.tsx:646
ie @ button.js:175
We @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
Er @ react-dom.production.min.js:100
Mr @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Lr @ react-dom.production.min.js:105
Jt @ react-dom.production.min.js:75
Zt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Wa @ react-dom.production.min.js:122
Re @ react-dom.production.min.js:292
$t @ react-dom.production.min.js:73
mutation.js:103  Error: Request failed with status code 500
    at e.exports (createError.js:16:15)
    at e.exports (settle.js:17:12)
    at h.onreadystatechange (xhr.js:62:7)
(anonymous) @ mutation.js:103
Promise.catch (async)
t.execute @ mutation.js:96
n.mutate @ mutationObserver.js:83
(anonymous) @ Editor.tsx:233
f @ runtime.js:64
(anonymous) @ runtime.js:299
(anonymous) @ runtime.js:124
r @ asyncToGenerator.js:3
c @ asyncToGenerator.js:25
Promise.then (async)
r @ asyncToGenerator.js:13
c @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ Editor.tsx:165
(anonymous) @ Editor.tsx:598
(anonymous) @ utils.tsx:646
(anonymous) @ utils.tsx:646
(anonymous) @ utils.tsx:646
(anonymous) @ utils.tsx:646
ie @ button.js:175
We @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
Er @ react-dom.production.min.js:100
Mr @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Lr @ react-dom.production.min.js:105
Jt @ react-dom.production.min.js:75
Zt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Wa @ react-dom.production.min.js:122
Re @ react-dom.production.min.js:292
$t @ react-dom.production.min.js:73
createError.js:16  Uncaught (in promise) Error: Request failed with status code 500
    at e.exports (createError.js:16:15)
    at e.exports (settle.js:17:12)
    at h.onreadystatechange (xhr.js:62:7)
e.exports @ createError.js:16
e.exports @ settle.js:17
h.onreadystatechange @ xhr.js:62
Promise.then (async)
r @ asyncToGenerator.js:13
c @ asyncToGenerator.js:25
Promise.then (async)
r @ asyncToGenerator.js:13
c @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ Editor.tsx:165
(anonymous) @ Editor.tsx:598
(anonymous) @ utils.tsx:646
(anonymous) @ utils.tsx:646
(anonymous) @ utils.tsx:646
(anonymous) @ utils.tsx:646
ie @ button.js:175
We @ react-dom.production.min.js:52
Xe @ react-dom.production.min.js:52
(anonymous) @ react-dom.production.min.js:53
Er @ react-dom.production.min.js:100
Mr @ react-dom.production.min.js:101
(anonymous) @ react-dom.production.min.js:113
De @ react-dom.production.min.js:292
(anonymous) @ react-dom.production.min.js:50
Lr @ react-dom.production.min.js:105
Jt @ react-dom.production.min.js:75
Zt @ react-dom.production.min.js:74
t.unstable_runWithPriority @ scheduler.production.min.js:18
Wa @ react-dom.production.min.js:122
Re @ react-dom.production.min.js:292
$t @ react-dom.production.min.js:73

I uninstalled 4.0.5 and installed 3.9.11 and the problem persisted. I installed 3.9.11 on a new server, and it seems fine so far. :woman_shrugging:

Edit: Spoke too soon. Issue has cropped up on the new server.

We’ve got a fix coming out for this: Save Fails with 500 · Issue #2531 · ironmansoftware/issues · GitHub

Awesome! The work around appears to work for me too. If I press Ctrl+F5 I can save.

I upgraded to 4.0.6 today and that resolved this issue.