js-algorand-sdk icon indicating copy to clipboard operation
js-algorand-sdk copied to clipboard

Algod port argument should not have weird default

Open barnjamin opened this issue 3 years ago • 0 comments

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

barnjamin avatar Sep 23 '22 11:09 barnjamin