0

Wtih nugget deepl.net

public async Task<String> Translate(String test)
{
            
            var translator = new Translator(this.apiKey);
            var translatedText = await translator.TranslateTextAsync(
              test,
              sourceLanguage.ToLower(),
              targetLanguage.ToLower());
            return translatedText.Text;
}

The funny thing is that I had also made the connection manually but this too after 2-3 requests no longer responds. While on the site the requests are counted. Ideas?

var translatedText = await translator.TranslateTextAsync(
              test,
              sourceLanguage.ToLower(),
              targetLanguage.ToLower());
            return translatedText.Text;
}

stop waiting in inifinite.

  • Hey Christian i just tried to reproduce your issue but wasn't able to. Can you tell me a bit more about what you are doing there? It sounds a bit like you're getting rate limited and the internal behaviour of the .NET Lib takes care of that (which is why you have to wait) But that wouldn't happen on just 3 subsequent tries – Tim Cadenbach Mar 23 '23 at 10:27

0 Answers0