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

4.2.1 throws: `NaN is not encodable in msgpack!` #256

Open
deanrather opened this Issue Oct 4, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@deanrather

deanrather commented Oct 4, 2018

Passing in valid JSON fails the isNaN test in lib/encoder.js.

Rolling back to 4.2.0 resolves the problem.

Example json:

{"t":"dm","p":{"cmd":"updatedevice","domain":"nisient.com","data":{"deviceId":"02:34:9a:de:0b:52","deviceType":"nsdk","deviceInfo":{"version":"3.45.6","system":{"manufacturer":"Xen","model":"HVM domU","version":"4.2.amazon","serial":"ec2f3ab6-a33c-c3a6-0910-8dedea594915","uuid":"EC2F3AB6-A33C-C3A6-0910-8DEDEA594915","sku":"Not Specified"},"bios":{"vendor":"Xen","version":"4.2.amazon","releaseDate":"2006-08-24","revision":"4.2"},"baseboard":{"manufacturer":"","model":"","version":"","serial":"","assetTag":""},"os":{"platform":"linux","distro":"Ubuntu","release":"16.04","codename":"xenial","kernel":"4.4.0-1069-aws","arch":"x64","hostname":"nsdk.iotransit.net","logofile":"ubuntu"},"versions":{"kernel":"4.4.0-1069-aws","openssl":"1.1.0h","node":"10.4.1","v8":"6.7.288.45-node.7","npm":"6.4.1","yarn":"","pm2":"3.0.3","gulp":"","grunt":"","git":"2.7.4","tsc":"","mysql":"","redis":"","mongodb":"","nginx":"","php":""},"cpu":{"manufacturer":"Intel®","brand":"Xeon®  E5-2686 v4","vendor":"GenuineIntel","family":"6","model":"79","stepping":"1","revision":"","voltage":"","speed":"2.30","speedmin":"","speedmax":"","cores":1,"cache":{"l1d":32768,"l1i":32768,"l2":262144,"l3":47185920},"flags":"fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm invpcid_single kaiser fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt"},"graphics":{"controllers":[{"vram":4}],"displays":[]},"net":[{"iface":"lo","ip4":"127.0.0.1","ip6":"::1","mac":"","internal":true},{"iface":"eth0","ip4":"172.31.7.110","ip6":"fe80::34:9aff:fede:b52","mac":"02:34:9a:de:0b:52","internal":false}],"memLayout":[{"size":2147483648,"bank":"Not Specified","type":"RAM","clockSpeed":null,"formFactor":"DIMM","manufacturer":"Not Specified","partNum":"Not Specified","serialNum":"Not Specified","voltageConfigured":-1,"voltageMin":-1,"voltageMax":-1}],"diskLayout":[]},"dto":"2018-10-04T00:14:12.143Z","coords":{"lat":0,"lon":0,"alt":0}},"seq":"0"}}

It may be due to unicode characters in the JSON?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment