Bug with the .net-client for google translate? -
anyone else experiencing issues .net-client google translate? seems working long strings try translate short enough fit within get-request. when exceed , client tries post-request instead server returns http status 404.
with get-requests uses: https://www.googleapis.com/language/translate/v2
but post-requests uses www.googleapi.com/language/translate/v
if try manually go post-url in browser receive 404 well. bug in client?
edit: found reported bug in bug tracker couple of days ago. due included next release dotnet-client. http://code.google.com/p/google-api-dotnet-client/issues/detail?id=455&can=1&q=translate&colspec=id%20type%20component%20status%20priority%20milestone%20owner%20summary
we working on issue, under review - https://codereview.appspot.com/87170043/. in meantime can split text want translate no more around 1950 chars (the library doesn't support more 2048 chars in url).
take @ https://code.google.com/p/google-api-dotnet-client/source/browse/src/googleapis/apis/services/baseclientservice.cs#56 , https://code.google.com/p/google-api-dotnet-client/source/browse/src/googleapis.core/apis/http/maxurllengthinterceptor.cs
Comments
Post a Comment