Closed jludvice closed 7 years ago
Removing protocol from uri has no effect. Both
Caused by: java.lang.IllegalArgumentException: hostname must be specified and not empty
related part of jsondb:
{
"data": {
"createdDate": 1498661162981,
"currentStatus": "Activated",
"desiredStatus": "Activated",
"gitRepo": "https://github.com/jludvice/noprotocol.git",
"id": "-Knj9cz_Qbu-LjUrI2oA",
"lastUpdated": 1498661301369,
"name": "noprotocol",
"steps": [
{
"action": {
"camelConnectorGAV": "io.syndesis:timer-connector:0.4.4",
"camelConnectorPrefix": "periodic-timer",
"description": "Set a timer that fires at intervals that you specify",
"id": "io.syndesis_timer-connector:latest",
"inputDataShape": {
"kind": "none"
},
"name": "Periodic Timer",
"outputDataShape": {
"kind": "any"
},
"properties": {
"period": {
"componentProperty": false,
"defaultValue": "10000",
"deprecated": false,
"description": "Period in milli seconds when the timer runs. By default the timer runs every 10000 (10 second).",
"displayName": "Period",
"group": "consumer",
"javaType": "long",
"kind": "parameter",
"required": false,
"secret": false,
"type": "integer"
}
}
},
"configuredProperties": {
"period": "10000"
},
"connection": {
"configuredProperties": {},
"connectorId": "timer",
"createdDate": 1492095344060,
"description": "Timer Connection",
"icon": "fa-globe",
"id": "4",
"lastUpdated": 1492095344060,
"name": "Timer Example",
"options": {},
"tags": [
"example",
"test"
]
},
"stepKind": "endpoint"
},
{
"action": {
"camelConnectorGAV": "io.syndesis:http-get-connector:0.4.4",
"camelConnectorPrefix": "http-get",
"description": "Call a service that is internal (within your company) or external (on the internet) by specifying the service's URL",
"id": "io.syndesis:http-get-connector:latest",
"inputDataShape": {
"kind": "none"
},
"name": "HTTP GET",
"outputDataShape": {
"kind": "any"
},
"properties": {
"httpUri": {
"componentProperty": false,
"deprecated": false,
"description": "The url of the HTTP endpoint to call.",
"displayName": "Http Uri",
"group": "producer",
"javaType": "java.net.URI",
"kind": "path",
"label": "producer",
"required": true,
"secret": false,
"type": "string"
}
}
},
"configuredProperties": {
"httpUri": "httpbin.org/ip"
},
"connection": {
"configuredProperties": {},
"connectorId": "http",
"createdDate": 1492095344060,
"description": "HTTP Connection",
"icon": "fa-globe",
"id": "3",
"lastUpdated": 1492095344060,
"name": "HTTP Example",
"options": {},
"tags": [
"example",
"test"
]
},
"stepKind": "endpoint"
}
],
"stepsDone": [
"github-setup",
"openshift-setup"
],
"token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ2RkhFdGhnS1psN0kwVThCMDY0QkZqOHpDVnNRVXZCeWtoN1RxbVYxTVBVIn0.eyJqdGkiOiJmY2QwZWZlZi02MTEwLTQzMTItYjE3My03ZDkxMzYzOWZiM2UiLCJleHAiOjE0OTg2NjE0MTIsIm5iZiI6MCwiaWF0IjoxNDk4NjYxMTEyLCJpc3MiOiJodHRwczovL3N5bmRlc2lzLjE5Mi4xNjguNDIuODMueGlwLmlvL2F1dGgvcmVhbG1zL3N5bmRlc2lzIiwiYXVkIjoic3luZGVzaXMtdWkiLCJzdWIiOiIyZmUzNDYwNC01OTIzLTQ5MWQtOTVhNy03NTY5ZWU1N2E5YTkiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJzeW5kZXNpcy11aSIsIm5vbmNlIjoiWHpUd2U4NjVYN1JzN0dmR1dkRGJyamNFR1ozY3JYWUZjT0lrSnFMY0IwWW1McWw0RnZEenpUWmpVeUlsU2o5VSIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6ImM0ZjkxOTJiLWEwMzctNGViYS05MmQwLTI5NDBjNGI0MTU3ZCIsImFjciI6IjAiLCJjbGllbnRfc2Vzc2lvbiI6ImQwZjI5MTFhLTA5ZDktNDY0ZC05YjcxLTNkNDAyMTM4NTYzZSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwczovL3N5bmRlc2lzLjE5Mi4xNjguNDIuODMueGlwLmlvIiwiaHR0cDovL2xvY2FsaG9zdDo0MjAwIl0sInJlc291cmNlX2FjY2VzcyI6eyJicm9rZXIiOnsicm9sZXMiOlsicmVhZC10b2tlbiJdfX0sIm5hbWUiOiJKb3NlZiBMdWR2w63EjWVrIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiYWRtaW4iLCJnaXZlbl9uYW1lIjoiSm9zZWYiLCJmYW1pbHlfbmFtZSI6Ikx1ZHbDrcSNZWsiLCJlbWFpbCI6ImFAYi5jIn0.EBiQJ5Sm4sLqNfaRGRdcvmechJXGXSWhgxe-aFGK0Z9J5YwBbwSQSdcjg3nUJa5B7u4WA8gN7z2U6JMe6-eYrO3RUrSV2LEBxIsPakTgiRxlWM69uwnTptVGN_V38Z_uY4qAmSNzSTjiOCISTojE1basjHLG9108kTYEWGXeeg6C_J0fdQRNReE3ZPrA6KTmLP5NtxwnajsYaXsSgH8hRfaDEQlUwY1k3uJohP3iicRvam9M1zYiNjHhR-Wn6WbplTNxsDWs8DEJdZLJJlfhfVtd1kep1a8REsVPBMnnHWmzhZ5utSvqRWeYHTzcD_KS1txOFHNsSDmNuoQaxUXGqA",
"users": []
},
"kind": "integration"
},
That's interesting, I don't believe we manipulate the string you enter in the form field, will have to see what we submit in this case when the integration is created.
This kinda feels like a backend/runtime issue more than an issue with the UI, we don't do anything with the string argument, that's just passed along to the runtime as-is.
@dsimansk mentioned it might be caused by connector - it now requires parts of url in separate properties
We didnt have chance to try to update metadata to verify
Ugh, I hate that :-) I mean having to break up a URL in a form is the worst, but maybe that's what's going on here. In that case the properties for the connector definitely need to updated, but that's a matter of updating the connector, not the UI.
I think since we've pulled out the generic HTTP connector this is a non-issue at this point.
I used Http get connection and filled Http URI in integration > connection
but integration fails to start due to
Failed to resolve endpoint: http-get due to: hostname must be specified and not empty
generated funktion.yml:
---full logs---
oc logs -f timed-http-get-1-9mf7s
oc logs -f syndesis-rest-1-d3tnv