-
Notifications
You must be signed in to change notification settings - Fork 24
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
g11n-pipeline.uploadStrings error with specific characters #34
Comments
The JSON contents above successfully uploaded on Bluemix dashboard. So this is not REST API server issue. The error message is "Failed to authenticate..", so there is something wrong with authentication. Can you also check if it works well with a different value with the same instance/bundle/user/pass? |
I wasn't able to reproduce with the above file (renamed to
|
GP authentication is date sensitive. When a client system's clock is different from REST server more than 10 minutes, then the generated authentication code is invalidated. Can you check the client system's clock is accurate? |
The bug is in fact due to nodejs/node#5499 (comment) — apparently |
* Thanks to nodejs/node#5499 (comment) … it seems that crypto.….update() needs to take an encoding parameter. * Add a test case for non-utf8 text in upload Fixes: IBM-Cloud#34
Fixes: IBM-Cloud#34
so according to https://nodejs.org/api/crypto.html#crypto_hmac_update_data_input_encoding the default is utf-8 , but this wasn't true in previous node versions. In particular, v4.x and v0.12.x did not default to utf8. |
g11n-pipeline
v1.2.2 and GA Globalization Pipeline on Bluemix service.The attached JSON strings cases uploadStrings to fail with the following error:
uploadStrings error: {"obj":{"status":"ERROR","message":"Failed to authenticate user: [my credential]
boxDrawingChars.txt
The text was updated successfully, but these errors were encountered: