Getting 403 although the API key is correct
iec989 opened this issue · 2 comments
iec989 commented
I'm using the free version of deepl and I setup everything as per the instructions, but I'm getting the following error:
The Response seems to not be valid JSON. {"userId":2,"exception":"[object] (BabyMarkt\\DeepL\\DeepLException(code: 403)
When using CURL directly with the same API key, it works correctly.
I've tried the below and didn't work:
- $deepl = new DeepL('KEY');
- $deepl = new DeepL('KEY','api-free.deepl.com');
- $deepl = new DeepL('KEY','api-free.deepl.com/v2/translate');
Then I do deepl->translate($text, \App::getLocale(), $lang)
and get the 403
Would you know what could be happning?