Adding NEAR_WORKSPACES_DEBUG=true didn't help either.
One of the issues is that the code handling backoffs is hiding the reason of the failure, making it hard to track the real issues.
In the end the issue here is:
error: FetchError: request to http://localhost:1592/ failed, reason: connect ECONNREFUSED ::1:1592
Meaning that even though near-sandbox listens on IPv4 the app attempts to connect at IPv6. Not sure what the right fix here is, probably near-sandbox should also listen on IPv6 or maybe the url shouldn't use localhost but the IP address instead.
Ok, so. I tried to run tests - written in AVA. For some reason. I quickly figured out the code responsible:
It was hanging on the
createSubAccount
. Sadly after a long timeout all I got was this:Adding
NEAR_WORKSPACES_DEBUG=true
didn't help either.One of the issues is that the code handling backoffs is hiding the reason of the failure, making it hard to track the real issues.
In the end the issue here is:
Meaning that even though
near-sandbox
listens on IPv4 the app attempts to connect at IPv6. Not sure what the right fix here is, probably near-sandbox should also listen on IPv6 or maybe the url shouldn't uselocalhost
but the IP address instead.