Github user bbende commented on the issue:
https://github.com/apache/nifi/pull/1307
@randerzander I haven't been able to reproduce this yet. Running a simple
GetFile -> RPG on minifi-cpp to a regular NiFi with InputPort -> LogAttribute,
I am seeing the two attributes come through correctly.
I'm trying to look at the rest of the s2s code to see how a Peer instance
could be created and not get the correct host or port. Would you be able to add
the following code to the end of the Peer constructor?
https://github.com/apache/nifi/blob/master/nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/Peer.java#L51
```
if (this.host == null || this.port == -1) {
throw new IllegalStateException("Unable to get host or port
from peerUrl" + peerUrl);
}
```
My theory is that it somehow the parsing of the URI is considered
successful, but it didn't actually find a host or port, since the Javadocs of
uri.getPort() say it can return -1. Let me know if you can get that stacktrace
from that added code to see what the peerUrl is when this happens. Thanks.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---