Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Handle 500 response better when generating PDF #885

Open
Cooryd opened this issue Jul 23, 2021 · 1 comment
Open

Handle 500 response better when generating PDF #885

Cooryd opened this issue Jul 23, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Cooryd
Copy link
Contributor

Cooryd commented Jul 23, 2021

We've not yet hooked up the staging PDF service to call off to Exeter so clicking the generate button in client produces a 500 response. I would expect this to be handled by the client in the same way a failed response is, a red popup informing the user something went wrong. Instead we get a console error and the application goes into a broken state (ie: auto save no longer works)

The above error occurred in task wr
    created by takeLatest(EXPORT_PDF, wr)
    created by Ir
    created by ri
Tasks cancelled due to error:
takeLatest(EXPORT_PDF, wr)
takeLatest(SET_FOCUS, xr)
takeLatest(SET_ACTIVE_EXPORT_PDF_TASK, Nr)
takeLatest(CANCEL_EXPORT_PDF_TASK, Sr)
ei
Dr
mr
en
Jr
@Cooryd Cooryd added the bug Something isn't working label Jul 23, 2021
@GrazingScientist
Copy link

I can reproduce this. Also, after clicking the PDF button, the article segment navigation on the left does not react anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants