Comments (6)
Well, it seems a good night's sleep was needed for this one. This issue is solved in #1615 (comment).
from fuels-ts.
This issue description looks contradictory to me, so much so that I can't reconcile that you are filing a bug and simultaneously saying it's not a pressing issue for the same PR that is still open. If there is an issue with that PR, that should be fixed over there before that gets merged, and this issue is unnecessary.
from fuels-ts.
I already spent quite some time trying to get this to work, fix it in that PR and not file this issue. Unfortunately, I couldn't get to the root of the problem. With filing this issue I wanted to unblock #1615 because this bug is not tied to introducing submitAndAwait
per se, but to the underlying infrastructure and how we're using the streams API. Any SSE connection that's read via the streams API and that gets closed by the server isn't registered as closed by that same streams API.
from fuels-ts.
Are you saying this issue was introduced after #1374 instead of #1615?
from fuels-ts.
Correct. I'll try resolving this specific issue but we can also specify a timeout for subscriptions as is suggested by the vm client team, in which case an infinite loop would never be possible because we'd be closing the stream ourselves after that timeout. It wouldn't directly solve this issue, but this issue then should never happen because we'd close the stream ourselves at one point which'd end the stream correctly with a {value: undefined, done: true}
.
from fuels-ts.
Then, I'd say we should pause #1615 and address this matter first. There's no harm in delaying the submitAndAwait
, especially considering it'd also make the use of subscriptions more prevalent.
from fuels-ts.
Related Issues (20)
- Generate interfaces in `typegen` and read them via generic type parameters
- Migrate snippets from `guide/contracts`
- Migrate snippets from `guide/cookbook`
- Migrate snippets from `guide/create-fuels`
- Migrate snippets from `guide/encoding`
- Migrate snippets from `guide/introduction`
- Migrate snippets from `guide/predicates`
- Migrate snippets from `guide/provider`
- Migrate snippets from `guide/scripts`
- Migrate snippets from `guide/testing`
- Migrate snippets from `guide/transactions`
- Migrate snippets from `guide/types`
- Migrate snippets from `guide/utilities`
- Migrate snippets from `guide/wallet-manager`
- Migrate snippets from `guide/wallets`
- Explore options to achieve Runnable Snippets
- Calling `wallet.createTransfer()` throws `InsufficientFeeAmount` error HOT 4
- Explore more ergonomic API for funding/estimate
- Explore more ergonomic API around custom TXs
- Flaky tests HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuels-ts.