You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that this is caused by an empty string key.
According to this link, an empty string is a valid json key, I think this applied to Msgpack as well?
The text was updated successfully, but these errors were encountered:
ZumiKua
changed the title
Error: The type of key must be string or number but object is thrown when decoding a valid content.Error: The type of key must be string or number but object is thrown when decoding a object with empty string key
Mar 18, 2021
ZumiKua
changed the title
Error: The type of key must be string or number but object is thrown when decoding a object with empty string keyError: The type of key must be string or number but object is thrown when decoding a object with null as key
Mar 18, 2021
with the above code, msgpack5 can successfully decode the content but msgpack throws
Error: The type of key must be string or number but object
The version of msgpack I'm using is
2.4.1
, Node version isv10.14.2
The json version of the message is:
It seems that this is caused by an empty string key.
According to this link, an empty string is a valid json key, I think this applied to Msgpack as well?
The text was updated successfully, but these errors were encountered: