Skip to content

Better error reporting when running the NiFi setup script #75

@luisgarcc

Description

@luisgarcc

We got a question from Rachita with the following stack trace:

(base) Rachitas-MacBook-Pro:utilities rachitachandra$ ./setupClinicalIngestionFlow.py http://localhost:8080 research
BaseURL requires trailing /, fixing...
Configuring with Nifi at BaseURL: http://localhost:8080/
Step 1: Creating process group...
Traceback (most recent call last):
 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
  chunked=chunked,
 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py", line 421, in _make_request
  six.raise_from(e, None)
 File "<string>", line 3, in raise_from
 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/urllib3/connectionpool.py", line 416, in _make_request
  httplib_response = conn.getresponse()
 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1336, in getresponse
  response.begin()
 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 306, in begin
  version, status, reason = self._read_status()
 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 267, in _read_status
  line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 589, in readinto
  return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer

The problem was that her port forwarding process had stopped, so perhaps when running against the script localhost and seeing this trace we can hide the trace and show a more user friendlier error message with recovery actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions