thanks, now it's clear.

For NodeJs and PHP clients:
You cannot use OBJECT_ARRAY constant to specify a field type. This is true for all non-primitive types. That's why you get ""type" argument has incorrect value" exception. Non-primitive types can be specified using special objects. In this case - ObjectArrayType.
  All these are described in the API specs.
  So, you need to update your examples:
     PHP: setValueType(new ObjectArrayType())
     NodeJs: setValueType(new ObjectArrayType()) or
setValueType(new ObjectArrayType(ObjectType.PRIMITIVE_TYPE.INTEGER)) (if you want an array of integers)

For Python client:
  Dmitry will answer.

Regards,
-Alexey

26.10.2018 17:22, Stepan Pilschikov пишет:
No

Now tried
code and output - https://gist.github.com/pilshchikov/4c02057e624baa54326a1e75b4ee3f46
And it looks like it works

пт, 26 окт. 2018 г. в 17:10, Alexey Kosenchuk <alexey.kosenc...@nobitlost.com <mailto:alexey.kosenc...@nobitlost.com>>:

    Hi Stepan,

    Have you tried the same with Java and .net thin clients as well and
    everything work fine?

    Thanks,
    -Alexey

    26.10.2018 16:57, Stepan Pilschikov пишет:
     > Hi, everyone
     >
     > Create new thread to centralize cross compatibility and others
    common
     > problems between thin clients
     >
     > Tying to use Object array to exchange different data between JS,
    PHP and
     > Python thin clients
     >
     > JS and PHP simply can't put any type of arrays
     > Python can put data, but if you take it, data would be completely
     > different, maybe during this put process data is changed
     >
     > Code and output:
     > PHP -
    https://gist.github.com/pilshchikov/e887d31d4f2f36923470fead14c7801a
     > JS -
    https://gist.github.com/pilshchikov/ba49067fd8924ebdf4414ec63838b86d
     > Python -
     > https://gist.github.com/pilshchikov/f4bbf76e31547e2dca7d4cc5d55bd24f
     >
     > I'm tried different data types (string, double, float, complex
    objects,
     > just random objects, char, byte, Date), still
     >
     > How, from my perspective, it should works:
     > put array of any type and then get this array.
     > Example: put [1,2,3] -> get [1,2,3] or put [new Date(), new
    Date()] ->
     > get [[Date object], [Date object]] (like in java thin client)
     >
     > Looks like bug in all clients, what you think?
     >
     > I wanted to try Collections, but i think this type have same problem

Reply via email to