-
Notifications
You must be signed in to change notification settings - Fork 506
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
Unable to stream OperationResponse event #2556
Comments
What's the result of |
Is this on the testnet? If so, it could be that the testnet reset last week and erased that account. |
It is on prod. This is the account Id, I am trying to stream payments - GD5G2MBZTRGPQFSBPRFPSA7SF4C6KX6M5HNTM4NSXNNWN65UDWALUGJM |
I am able to start stream for Ledger events and even seeing latest blocks in logs But when I am trying to start payment stream for a account on prod getting 404 error don't know what change ? |
I have created an horizon server using below - https://github.com/stellar/docker-stellar-core-horizon/blob/master/README.md. It was working before I restarted the horizon server. When I hit my server url I see that it's in sync |
Can you run:
Does it stream events one by one or all payments all at once? |
Got the below error Horizon server node status: |
Any chance you can share your Horizon server URL? Can be privately (send an email to bartek at stellar org). |
Sent. Can you please check |
When I try to hit the below url to stellar prod server - curl -H "Accept: text/event-stream" "https://horizon.stellar.org/accounts/GD5G2MBZTRGPQFSBPRFPSA7SF4C6KX6M5HNTM4NSXNNWN65UDWALUGJM/payments" I am getting payments |
Do you know how can i start the horizon server using docker by giving custom history_elder_ledger value ? |
@bartekn it seems related but not quite a duplicate? In #736 the account doesn't exist. Here, the account exists but with no payments in the range. I do think we should do something about these streaming semantics for the general case where there is no data to stream. Does it make sense to just maintain a connection with an empty stream? I'd be ok with that. That fixes #736 but I don't know that it makes the situation in this issue any easier to understand for a user. I'm not really sure what we could do to make this clearer. I note that the 404 actually explicitly mentions the possibility of no data:
|
This was resolved with the recommendation. |
What version are you using?
"horizon_version": "v1.2.0"
"core_version": "v13.0.0"
What did you do?
Upgraded and restarted the horizon server.
What did you expect to see?
Able to stream payments for an account.
What did you see instead?
Whenever I am trying to connect to payment stream listener for stellar network, I am getting below response from server
Optional.of(404)
Using below java code to connect
paymentsRequestBuilder.forAccount(account.getAccountId()).stream(operationsEventListener);
This was working before. Can anybody please let me know what I am doing wrong ?
The text was updated successfully, but these errors were encountered: