DeepLcom / deepl-php

Official PHP library for the DeepL language translation API.
MIT License
202 stars 23 forks source link

Contains special characters throws ConnectException: Connection timed out error #8

Closed oklqaz closed 1 year ago

oklqaz commented 2 years ago

Contains special characters throws ConnectException: Connection timed out error like ! or &

daniel-jones-deepl commented 2 years ago

Hi @oklqaz, thanks for raising this issue. Can you share some example code? I could not reproduce it with the following code:

$translator = new Translator("f63c02c5-f056-..."; // Replace with your key
$result = $translator->translateText("Hello to one & all!", "en", "de")->text;
echo $result; // Outputs: "Hallo an alle und jeden!"

And do you know when this timeout occurred? It could be a temporary issue.

daniel-jones-deepl commented 1 year ago

I'm closing this issue as I cannot reproduce it without more information, but feel free to comment again in future.