Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Blank lines in cron job output cause "[API Error] Validation failed: Output can't be blank" #168

Closed
CerebralXor opened this issue Nov 20, 2015 · 2 comments
Labels
Milestone

Comments

@CerebralXor
Copy link

It seems that blank lines in a job's output will cause the error "[API Error] Validation failed: Output can't be blank". Minicron hub will log output until the blank line, but stops logging when it reaches the blank line.

To produce, consider then following minicron job: printf 'Hello\nWorld\n'
Minicron hub will show the job's output as:

Hello
World

But, consider this job (with one extra line break): printf 'Hello\n\nWorld\n'
You would expect:

Hello

World

but instead minicron shows

Hello
[API Error] Validation failed: Output can't be blank
@jamesrwhite jamesrwhite added this to the future milestone Nov 20, 2015
@jamesrwhite
Copy link
Owner

Yep, this is an activerecord validation issues on the server side. Thanks for reporting.

@jamesrwhite
Copy link
Owner

I removed the validation and this should be resolved now, I'll include it in the next release. Thanks!

image

@jamesrwhite jamesrwhite modified the milestones: 0.8.4, future Nov 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants