diff --git a/para-server/src/main/java/com/erudika/para/queue/River.java b/para-server/src/main/java/com/erudika/para/queue/River.java
index <HASH>..<HASH> 100644
--- a/para-server/src/main/java/com/erudika/para/queue/River.java
+++ b/para-server/src/main/java/com/erudika/para/queue/River.java
@@ -179,7 +179,7 @@ public abstract class River implements Runnable {
 		}
 		try {
 			boolean urlEncoded = (boolean) parsed.get("urlEncoded");
-			String targetUrl = (String) parsed.get("targetUrl");
+			String targetUrl = StringUtils.trimToEmpty((String) parsed.get("targetUrl"));
 			HttpPost postToTarget = new HttpPost(targetUrl);
 			postToTarget.addHeader("User-Agent", "Para Webhook Dispacher " + Para.getVersion());
 			postToTarget.setHeader(HttpHeaders.CONTENT_TYPE, urlEncoded ?
fixed possible error in river class when webhook target contains spaces