Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Conversation

@grandeljay
Copy link

I was getting a very generic

PHP Fatal error: Uncaught BabyMarkt\DeepL\DeepLException: The Response seems to not be valid JSON. 

error when I was actually using wrong credentials.

This PR should make API responses clearer for whoever is debugging.

@grandeljay grandeljay marked this pull request as draft December 10, 2021 11:17
@grandeljay
Copy link
Author

After further research I think this is an overkill, I was using the library wrong

$deepl = new \BabyMarkt\DeepL\DeepL( HS_TRANSLATE_DEEPL_API_KEY, HS_TRANSLATE_DEEPL_API_HOST ); 

I forgot to specify the API version

@grandeljay grandeljay closed this Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant