-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
401 response ton /manifest request not returning error code for API call to Enketo #34
Comments
readonly view: http://localhost:8005/view/fs/i/bc779317d111a78dba079c30335325b2?ecid=1 PDF: curl --user enketorules: -d "server_url=http://localhost:3000&form_id=slash&ecid=1" http://localhost:8005/oc/api/v1/survey/view/pdf > ~/Downloads/pdf1.pdf PDF URL used internally by the PDF API endpoint: http://localhost:8005/view/fs/bc779317d111a78dba079c30335325b2?ecid=1&print=true In Centro's .then( manifest => {
//res.send( manifest.toString() );
res.status(401);
res.end()
} ) |
Notes to self: Succeeded in inspecting requests and finding a 401 response. Still figuring out how to properly reject/throw an error so that it can be caught. I have a feeling that the code in headless.js also is not catching errors (hence the old comments 'unable to reach) in that code.
|
kobotoolbox#688 fixed: a headless chrome instance will now be kept alive at all times so pdf responses should be quicker
|
…F generation it does not provide an error response, https://github.com/OpenClinica/enketo-express-oc/issues/688
|
When we call a PDF endpoint to create a PDF of a form, we are sometimes not able to handle the /manifest call from Enketo and returning 401 for it. In these cases, the form cannot be returned as a PDF but we are not getting an error code response to indicate this. The expectation is that the call to Enketo will return an error code if the form cannot be returned as a PDF.
The text was updated successfully, but these errors were encountered: