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

Executing client.fetch immediately after client.connect will encounter error. #20

Closed
nodegin opened this issue Jun 3, 2018 · 0 comments

Comments

@nodegin
Copy link
Owner

nodegin commented Jun 3, 2018

This issue just for logging.

const client = new Client(...}
await client.connect()
await client.fetch({
  '@type': 'createPrivateChat',
  'user_id': 1234,
})

Error

(node:7969) UnhandledPromiseRejectionWarning: Error: {"@type":"error","code":6,"message":"Chat info not found"}

Resolved in version 1.3 by adding short delay.

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