[ https://issues.apache.org/jira/browse/THRIFT-1821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Meier updated THRIFT-1821: -------------------------------- Component/s: Node.js - Compiler > problem with sending request with Cyrillic in UTF-8 from node.js to java. > --------------------------------------------------------------------------- > > Key: THRIFT-1821 > URL: https://issues.apache.org/jira/browse/THRIFT-1821 > Project: Thrift > Issue Type: Bug > Components: Java - Library, Node.js - Compiler, Node.js - Library > Affects Versions: 0.9 > Reporter: Ihor Mysak > > Hi guys, > I used thrift to communicate my services written on java and node.js. (all > servers on java, clients on java and on node.js). this bug reproduces just on > node.js client. > In my source I write > ... > struct = new appSearch.ttypes.ASearchRequest(params); > console.log(struct); > appSearch.client.search(struct, function(err, result) { > ... > With latin query all is ok, but with Cyrillic its return an error > { query: 'ф', > tags: null, > categoryIds: null, > platforms: null, > stores: null, > ratings: null, > price: null, > withFacets: true, > retrieveCountByTitle: false, > withSpellcheck: false, > orders: null, > offset: 0, > size: 10 } // this is console.log(struct); > { name: 'TApplicationException', > type: 7, > message: 'Required field \'withFacets\' was not found in serialized data! > Struct: > com.airupt.searcher.thrift.ASearchRequest$ASearchRequestStandardScheme@1140382' > } // this is console.log(err); > my ASearchRequest structure > struct ASearchRequest { > 1:optional string query, > 2:optional set<string> tags, > 3:optional set<i32> categoryIds, > 4:optional set<byte> platforms, > 5:optional set<byte> stores, > 6:optional set<byte> ratings, > 7:optional PriceFilter price, > > 8:required bool withFacets, > 9:required bool retrieveCountByTitle, > 10:required bool withSpellcheck, > > 11:optional list<ASearchOrder> orders, > 12:required i32 offset, > 13:required i32 size > } > As I said follow, with latin in requests all works correct. > Can any one help me with it ? > transport: thrift.transport.TBufferedTransport > protocol: thrift.protocol.TBinaryProtocol -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira