js-algorand-sdk
js-algorand-sdk copied to clipboard
Algod port argument should not have weird default
I've never seen 4180 as the port for an Algod API. In sandbox its 4001, for APIs it's almost always 443.
If the dev doesn't set it to an empty string, 4180 is used and often results in the call just hanging until timeout with no useful error message.
We should consider setting the default port to an empty string and let the caller override it if they have some special port