data-integrations / http

Sink plugin to send the messages from the pipeline to an external http endpoint
http://docs.cask.co/cdap
Other
1 stars 29 forks source link

[PLUGIN-1756] Fixed URL Validation #158

Closed psainics closed 8 months ago

psainics commented 8 months ago

Fixed URL Validation

Jira : PLUGIN-1756

Description

Adding this code snippet will fix null issue for other exceptions thrown by the library.

String errorMessage = e.getMessage();
if (errorMessage == null && e.getCause() != null) {
errorMessage = e.getCause().getMessage();
}

UI Field

Docs

Code change

Unit Tests