{"action":"created","issue":{"url":"https://api.github.com/repos/Zaid-Ajaj/Fable.Remoting/issues/96","repository_url":"https://api.github.com/repos/Zaid-Ajaj/Fable.Remoting","labels_url":"https://api.github.com/repos/Zaid-Ajaj/Fable.Remoting/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/Zaid-Ajaj/Fable.Remoting/issues/96/comments","events_url":"https://api.github.com/repos/Zaid-Ajaj/Fable.Remoting/issues/96/events","html_url":"https://github.com/Zaid-Ajaj/Fable.Remoting/issues/96","id":379138977,"node_id":"MDU6SXNzdWUzNzkxMzg5Nzc=","number":96,"title":"byte array does not work","user":{"login":"0x53A","id":4236651,"node_id":"MDQ6VXNlcjQyMzY2NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4236651?v=4","gravatar_id":"","url":"https://api.github.com/users/0x53A","html_url":"https://github.com/0x53A","followers_url":"https://api.github.com/users/0x53A/followers","following_url":"https://api.github.com/users/0x53A/following{/other_user}","gists_url":"https://api.github.com/users/0x53A/gists{/gist_id}","starred_url":"https://api.github.com/users/0x53A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x53A/subscriptions","organizations_url":"https://api.github.com/users/0x53A/orgs","repos_url":"https://api.github.com/users/0x53A/repos","events_url":"https://api.github.com/users/0x53A/events{/privacy}","received_events_url":"https://api.github.com/users/0x53A/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-09T12:13:33Z","updated_at":"2018-11-09T15:10:27Z","closed_at":null,"author_association":"NONE","body":"\r\nMy models look like this:\r\n\r\n```f#\r\ntype Mesh = {\r\n    Hash: byte array // 32 bytes\r\n\r\n    Vertices: Vector3 array\r\n    Indices: uint32 array\r\n\r\n    Color: string\r\n}\r\n\r\n/// reference a mesh\r\ntype PlacedMeshRef = {\r\n    Hash: byte array\r\n    Placement : ObjectPlacement\r\n}\r\n```\r\n\r\nwhen I send them from server to client I get an error:\r\n\r\n![grafik](https://user-images.githubusercontent.com/4236651/48261835-a69a0c00-e420-11e8-849e-fd7821743473.png)\r\n\r\n```\r\nError: \"Cannot convert [\"JString\",\"MYiahJg85WmXkHFtQHhmaEoy0JvgZGZmqnE9X0/jvMs=\"] to [\"Array\",null]\"\r\n```\r\n\r\n![grafik](https://user-images.githubusercontent.com/4236651/48261880-c7faf800-e420-11e8-8626-bb5d1f35d615.png)\r\n\r\n\r\nIt seems the issue is that the server encodes the byte array as base64, but the client expects an actual array.\r\n\r\nEncoding it as base64 is probably a good idea to reduce data waste, so I guess the client should be updated to special case byte arrays."},"comment":{"url":"https://api.github.com/repos/Zaid-Ajaj/Fable.Remoting/issues/comments/437388278","html_url":"https://github.com/Zaid-Ajaj/Fable.Remoting/issues/96#issuecomment-437388278","issue_url":"https://api.github.com/repos/Zaid-Ajaj/Fable.Remoting/issues/96","id":437388278,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzM4ODI3OA==","user":{"login":"0x53A","id":4236651,"node_id":"MDQ6VXNlcjQyMzY2NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/4236651?v=4","gravatar_id":"","url":"https://api.github.com/users/0x53A","html_url":"https://github.com/0x53A","followers_url":"https://api.github.com/users/0x53A/followers","following_url":"https://api.github.com/users/0x53A/following{/other_user}","gists_url":"https://api.github.com/users/0x53A/gists{/gist_id}","starred_url":"https://api.github.com/users/0x53A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x53A/subscriptions","organizations_url":"https://api.github.com/users/0x53A/orgs","repos_url":"https://api.github.com/users/0x53A/repos","events_url":"https://api.github.com/users/0x53A/events{/privacy}","received_events_url":"https://api.github.com/users/0x53A/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T15:10:27Z","updated_at":"2018-11-09T15:10:27Z","author_association":"NONE","body":"I'll try to send _something_ tomorrow.\r\n\r\nLooks like uint is also not supported:\r\n\r\n![grafik](https://user-images.githubusercontent.com/4236651/48270212-c984ea00-e439-11e8-8cd1-cf9794404ac6.png)\r\n\r\n```f#\r\n\r\ntype Mesh = {\r\n    Hash: string //byte array // 32 bytes\r\n\r\n    Vertices: V3 array\r\n    Indices: uint32 array // <--- I guess it fails here\r\n\r\n    Color: string\r\n}\r\n```\r\n\r\n\r\n-------------\r\n\r\nNo uint\r\n\r\n![grafik](https://user-images.githubusercontent.com/4236651/48270280-f6390180-e439-11e8-8b20-04cc837b3f95.png)\r\n"}}
{"actor":{"display_login":"0x53A"}}