-
Notifications
You must be signed in to change notification settings - Fork 22
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
1.8.0 doesn't work on servers but does on local machine #62
Comments
Hm, I can run the e2e tests with a free key. Can you give some more information about your server please (eg operating system)? Did you update anything else along with the java library? e.g. $ curl -X GET 'https://api.deepl.com/v2/usage' \
-H 'Authorization: DeepL-Auth-Key XXXXX:fx' \
-H 'Content-Type: application/json' |
Hello again, I figured out the issue: Others API that I use do a |
Ahh, I see. I can create a ticket in the backlog, this does seem useful. |
Fixing the issue raised in DeepLcom#62 Problem: auth key with leading / trailing whitespaces is throwing exceptions. For example, assigning the secret via `echo` leaves a trailing `\n`. Solution: strip input auth key as an input sanitization procedure Notice: Java 8 does not support `String.strip()`, while `String.trim()` does not support Unicode whitespaces. Therefore, using regex expressions for stripping.
@JanEbbing proposed a solution for this issue - #64 |
Looks good to me ! |
Fixing the issue raised in DeepLcom#62 Problem: auth key with leading / trailing whitespaces is throwing exceptions. For example, assigning the secret via `echo` leaves a trailing `\n`. Solution: strip input auth key as an input sanitization procedure Notice: Java 8 does not support `String.strip()`, while `String.trim()` does not support Unicode whitespaces. We anticipate ASCII only input and utilizing `trim()` for simplicity.
Fixing the issue raised in DeepLcom#62 Problem: auth key with leading / trailing whitespaces is throwing exceptions. For example, assigning the secret via `echo` leaves a trailing `\n`. Solution: strip input auth key as an input sanitization procedure Notice: Java 8 does not support `String.strip()`, while `String.trim()` does not support Unicode whitespaces. We anticipate ASCII only input and utilizing `trim()` for simplicity.
Hello !
I'm using deepl 1.8.0 after i used the 1.7.0 and I face a strange issue:
On my local machine (MacOS), it works fine. The token is a free tier token, therefore it ends with with
:fx
.However, on the server, the Deepl library throws an error saying:
If I switch back ti 1.7.0, it works.
The text was updated successfully, but these errors were encountered: