Skip to content
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

GET /cloudprnt job returns empty receipt when cputil is not properly installed #65

Open
CLSnazel opened this issue Nov 30, 2023 · 0 comments

Comments

@CLSnazel
Copy link

In some cases where it may seem that cputil is available, the GET job data route is able to successfully complete and send a response based on a token. However, if cputil is not properly installed on a environment (like with compatibility issues seen on alpine environments), the route is still returning a 200 with an empty receipt. To help diagnose and catch these issues earlier, we should check the file size of the receipt before sending it, and throw an error if it appears to be empty.

We should also add a check for jobData being undefined in addition to a null check to escape the route earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant