You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Presto returns a nextUri without a specified port number(e.g. http://prestoserver/v1/api/...), the following error is returned: RangeError: Port should be >= 0 and < 65536. Received .RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received .
Specifically, line 59, URL returns href.port as ''.
The way to fix this is to add the following at line 69: if (opts.port === '') delete opts.port; or opts.port = client.port;
My scenario is not an unusual situation. I simply have a firewall forwarding port 80 (as well as 443) to the presto coordinator on port 8080. The above error is seen when trying to contact it using port 80 or port 443 (with ssl turned on).
Would you be able to add one of the above-mentioned fixes?
Thanks
The text was updated successfully, but these errors were encountered:
When Presto returns a nextUri without a specified port number(e.g.
http://prestoserver/v1/api/...
), the following error is returned:RangeError: Port should be >= 0 and < 65536. Received .RangeError [ERR_SOCKET_BAD_PORT]: Port should be >= 0 and < 65536. Received .
This is due to the
opts.port
being an empty string when making a subsequent request due to: 5b87989#diff-bc0ed6253188f59cfb43f199aaea9eabR57-R67Specifically, line 59, URL returns href.port as
''
.The way to fix this is to add the following at line 69:
if (opts.port === '') delete opts.port;
oropts.port = client.port;
My scenario is not an unusual situation. I simply have a firewall forwarding port 80 (as well as 443) to the presto coordinator on port 8080. The above error is seen when trying to contact it using port 80 or port 443 (with ssl turned on).
Would you be able to add one of the above-mentioned fixes?
Thanks
The text was updated successfully, but these errors were encountered: