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

Connection timed out error when calling getUsage #10

Open
KaracsonyMarton opened this issue Sep 20, 2022 · 2 comments
Open

Connection timed out error when calling getUsage #10

KaracsonyMarton opened this issue Sep 20, 2022 · 2 comments

Comments

@KaracsonyMarton
Copy link

$usage = $translator->getUsage();

DeepL\ConnectionException: Operation timed out after 10001 milliseconds with 0 bytes received in /var/www/vendor/deeplcom/deepl-php/src/HttpClient.php:200

@daniel-jones-deepl
Copy link
Member

HI @KaracsonyMarton, thanks for reporting the issue.

Does this problem occur continually? It could be just a temporary condition.

@KaracsonyMarton
Copy link
Author

Yes, before each translation, we make a call to the translate API endpoint only if we are sure we have enough credits.

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

2 participants