Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket SubscribeTransaction '*' issue #460

Open
coval3nte opened this issue Feb 20, 2024 · 2 comments
Open

Websocket SubscribeTransaction '*' issue #460

coval3nte opened this issue Feb 20, 2024 · 2 comments

Comments

@coval3nte
Copy link

NBXplorer fails in subscribing to all cryptos.
the payload is took from the API.md.

payload:

{
  "type": "subscribetransaction",
  "data":{
    "cryptoCode": "*"
  }
}

url: ws://NBXPLORER_URL:NBXPLORER_PORT/v1/cryptos/btc/connect
response: Disconnected (code: 1000, reason: "Disposing NotificationServer")

@ziprotak
Copy link

ziprotak commented Dec 2, 2024

Still actual, getting this

fail: Microsoft.AspNetCore.Server.Kestrel: Connection id "0HN8IFII25BVN", Request id "0HN8IFII25BVN:00000001": An unhandled exception was thrown by the application.
System.InvalidOperationException: StatusCode cannot be set because the response has already started.
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ThrowResponseAlreadyStartedException(String value)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.set_StatusCode(Int32 value)
at Microsoft.AspNetCore.Mvc.ObjectResult.OnFormatting(ActionContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor.ExecuteAsyncCore(ActionContext context, ObjectResult result, Type objectType, Object value)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeAlwaysRunResultFilters()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

@softkost904
Copy link

Looks like notifications for transactions are broken, I'm getting the new block events, but not the new transactions via WebSocket (in nbxplorer log this transactions are present "NBXplorer.Events: BTC: .... hing confirmed transaction ...")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants