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

Issue with axios 1.2.0: "DeepLError: Error parsing response JSON: SyntaxError" #13

Closed
daniel-jones-deepl opened this issue Nov 24, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@daniel-jones-deepl
Copy link
Member

daniel-jones-deepl commented Nov 24, 2022

If axios v1.2.0 is used, the following error can occur when calling many library functions (e.g. getUsage()):
DeepLError: Error parsing response JSON: SyntaxError: Unexpected token in JSON at position 0

We have released v1.7.2 as a workaround: this updates the dependency requirement to disallow version axios v1.2.0, and are working on a fix.

@daniel-jones-deepl daniel-jones-deepl added the bug Something isn't working label Nov 24, 2022
@daniel-jones-deepl
Copy link
Member Author

There is a fix to axios pending in axios/axios#5306.

@daniel-jones-deepl
Copy link
Member Author

axios v1.2.1 includes the fix above; deepl-node v1.7.3 supports axios v1.2.1 and higher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant