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

Occasional "Received RST_STREAM with error code 2" error #22

Open
yar-sh opened this issue Nov 29, 2021 · 0 comments
Open

Occasional "Received RST_STREAM with error code 2" error #22

yar-sh opened this issue Nov 29, 2021 · 0 comments

Comments

@yar-sh
Copy link

yar-sh commented Nov 29, 2021

Bug Description
When running the following Python code:

ssl_credentials = grpc.ssl_channel_credentials()
token_credentials = grpc.access_token_call_credentials('<TOKEN>')
credentials = grpc.composite_channel_credentials(ssl_credentials, token_credentials)
channel = grpc.secure_channel("hft-apiv2-grpc.lykke.com:443", credentials)

public_api = publicService_pb2_grpc.PublicServiceStub(channel )
for upd in public_api.GetPriceUpdates(publicService_pb2.PriceUpdatesRequest(assetPairIds=['BTCUSD']))
	print(upd)

I get the following rare exception in the for loop (~0-4 times a day):

Exception "<class 'grpc._channel._MultiThreadedRendezvous'>" occured in main thread: "<_MultiThreadedRendezvous of RPC that terminated with:
        status = StatusCode.INTERNAL
        details = "Received RST_STREAM with error code 2"
        debug_error_string = "{"created":"@1638200789.471098478","description":"Error received from peer ipv4:52.232.64.194:443","file":"src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"Received RST_STREAM with error code 2","grpc_status":13}"
>"

It is most likely not the problem with the proto contracts, but with the hft endpoint?
Additionally, I have logged all UTC timestamps when this happened. Here is a list for last 2-3 days:

1638029552
1638041124
1638200789
1638350172
1638360320

Browser (please complete the following information):

  • OS: Linux 4.19.0-17-amd64 #⁠1 SMP Debian 4.19.194-2 (2021-06-21) x86_64 GNU/Linux
  • Browser: N/A

Last upstream Slate commit (run git log --author="Robert Lord" | head -n 1):
9333405f9574f8468522a60fab95d430a7a5acdc, but was present even before this

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

1 participant