You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by wi...@apache.org on 2021/04/02 13:55:41 UTC
[incubator-streampipes] branch dev updated: [STREAMPIPES-174] add
missing http protocol to url
This is an automated email from the ASF dual-hosted git repository.
wiener pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 67f782f [STREAMPIPES-174] add missing http protocol to url
67f782f is described below
commit 67f782f60ea0ef4f8ce790625e59355fb090ed70
Author: Patrick Wiener <wi...@fzi.de>
AuthorDate: Fri Apr 2 15:55:23 2021 +0200
[STREAMPIPES-174] add missing http protocol to url
---
.../wrapper/standalone/StreamPipesExternalDataProcessor.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/streampipes-wrapper-standalone/src/main/java/org/apache/streampipes/wrapper/standalone/StreamPipesExternalDataProcessor.java b/streampipes-wrapper-standalone/src/main/java/org/apache/streampipes/wrapper/standalone/StreamPipesExternalDataProcessor.java
index b3c73c2..1992905 100644
--- a/streampipes-wrapper-standalone/src/main/java/org/apache/streampipes/wrapper/standalone/StreamPipesExternalDataProcessor.java
+++ b/streampipes-wrapper-standalone/src/main/java/org/apache/streampipes/wrapper/standalone/StreamPipesExternalDataProcessor.java
@@ -36,6 +36,7 @@ public abstract class StreamPipesExternalDataProcessor extends StandaloneExterna
implements ExternalEventProcessor<ProcessorParams> {
// endpoint of Python processor runs here
+ private static final String HTTP_PROTOCOL = "http://";
private static final String PYTHON_ENDPOINT = "localhost:5000";
private String invocationId;
@@ -88,7 +89,7 @@ public abstract class StreamPipesExternalDataProcessor extends StandaloneExterna
String responseString = null;
try {
- responseString = Request.Post(PYTHON_ENDPOINT + "/" + endpoint)
+ responseString = Request.Post(HTTP_PROTOCOL + PYTHON_ENDPOINT + "/" + endpoint)
.bodyString(payload, ContentType.APPLICATION_JSON)
.connectTimeout(1000)
.socketTimeout(100000)