Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Truncated error message string #4211

JShelton ·

Error message appears to be cut off after a certain number of characters if the error happens to be particularly long. This seems to go beyond just the UI, as programmatically I have been unable to find a way to capture very long error messages, despite them being shown in the log. This would be attempting to capture an error message from a step directly, such as when using step.getErrormessage()

(same results when retrieving from a plugin)

Is it possible to capture the full length of an error message without it being truncated?

  • replies 4
  • views 56
  • stars 0
robinshen ADMIN ·

We need to make sure that the error message has a limited length, as otherwise it will cause trouble when saving in database and may also cause performance issues.

JShelton ·

:(

In that case, is there a good way to search through the log of a build after the build is complete, such as through a plugin? I could perhaps set up a regex to look for error messages that match a particular pattern and action on it that way.

robinshen ADMIN ·

With 9.0.41, the error message column has been changed to use the TEXTBLOB column type, and length limit has been changed to 10000 instead of 1000.

JShelton ·

10,000 characters sounds great, thanks.