Cannot read property 'then' of undefined - Importing legacy sidecar config

Hi,

I’m using a reverse proxy to access the graylog frontend and upgraded from 2.5.2 to 3.0.1 (and since then to 3.0.2) on Centos 7.6. I was testing 3.x before I upgrade the rest of the graylog servers we use and got stuck browsing to
https://example.com/system/sidecars/configuration/new
to create the sidecar configuration. (Was also trying to import legacy configuration but nothing seemed to happen from there.)

I logged this previously but had no responses from the group.

Cannot read property 'then' of undefined


Stack Trace:

TypeError: Cannot read property 'then' of undefined
    at r._reloadVariables (https://aaase1p-af2l.ap.striata.com/assets/5c4b4521-12.a5e2fb591e8fd54ee4ef.js:1:14630)
    at r.value (https://aaase1p-af2l.ap.striata.com/assets/5c4b4521-12.a5e2fb591e8fd54ee4ef.js:1:16845)
    at kn (https://aaase1p-af2l.ap.striata.com/assets/vendor.4024e2a8db732781a971.js:18:89167)
    at Tn (https://aaase1p-af2l.ap.striata.com/assets/vendor.4024e2a8db732781a971.js:18:84934)
    at gn (https://aaase1p-af2l.ap.striata.com/assets/vendor.4024e2a8db732781a971.js:18:84286)
    at Rn (https://aaase1p-af2l.ap.striata.com/assets/vendor.4024e2a8db732781a971.js:18:83307)
    at $t (https://aaase1p-af2l.ap.striata.com/assets/vendor.4024e2a8db732781a971.js:18:82227)
    at Object.enqueueSetState (https://aaase1p-af2l.ap.striata.com/assets/vendor.4024e2a8db732781a971.js:18:47300)
    at n.W.setState (https://aaase1p-af2l.ap.striata.com/assets/vendor.4024e2a8db732781a971.js:26:1660)
    at n.safeSetState (https://aaase1p-af2l.ap.striata.com/assets/app.a5e2fb591e8fd54ee4ef.js:88:190298)
    at https://aaase1p-af2l.ap.striata.com/assets/app.a5e2fb591e8fd54ee4ef.js:88:189403

Component Stack:

    in r
    in div
    in b
    in p
    in div
    in b
    in div
    in p
    in p
    in Uncontrolled(p)
    in div
    in p
    in div
    in p
    in div
    in div
    in b
    in r
    in div
    in p
    in div
    in p
    in span
    in i
    in SidecarNewConfigurationPage
    in n
    in div
    in p
    in div
    in p
    in div
    in t
    in div
    in t
    in n
    in withRouter(n)
    in div
    in App
    in RouterContext
    in Router
    in h
    in t
    in n
    in AppFacade

it looks like you hit a bug :bug:

I would please you to open a bug report over in the Sidecar Repo:

Hi Jan,

This is happens on the Graylog 3 frontend. Should I still add it as a bug to the sidecar?

kind of related to both. Just choose one and the devs might move it …

Thanks. I added it here:

1 Like

This issue is related to the CSP header I added to the reverse proxy. It used the work for 2.5.x but I’ll have to tweak it for 3.0.x. Usually Chrome will tell you about CSP errors but in this case it did not. At least I made some progress. I’ll post the CSP headers here once I know it works for version 3.

This server is not internet facing. Decided not to use CSP fully.