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

Exception "Empty response received" when calling CreateQuery #1

Closed
ZhangYiQiu opened this issue Apr 22, 2023 · 1 comment
Closed

Exception "Empty response received" when calling CreateQuery #1

ZhangYiQiu opened this issue Apr 22, 2023 · 1 comment
Labels
question Further information is requested

Comments

@ZhangYiQiu
Copy link

image

@justdmitry
Copy link
Owner

Library has sent the request, but received empty text as response.

Usually this happens when LiteServer you connected to has failed to answer. So you just need to reconnect (call InitIfNeeded() again) and retry CreateQuery call.

Sometimes tonlib can fail to parse your request - this has happened to me when I tried to send "really strange or wrong" requests (garbage instead of base64 bytes etc).

So first this here is to make sure you enabled (didn't disable) logging and check "Sending" and "Received" log entries, like this:
cmd_2023-04-24_11-20-50

Usually this logs can give you some knowledge what exactly happened.

@justdmitry justdmitry changed the title Can't CreateQuery Exception "Empty response received" when calling CreateQuery Apr 24, 2023
@justdmitry justdmitry added the question Further information is requested label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants