-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fails to decode a valid CBOR object #43
Comments
Looks like this is the undefined type. According to the spec, it looks like that should be used to indicate encoding errors... WHY? 😭 It looks like we're not the first to trip over this: FasterXML/jackson-dataformats-binary#93 I'm going to suggest the same solution: silently coerce to null (maybe we should make that optional)? |
Stebalien
added a commit
to Stebalien/refmt
that referenced
this issue
Nov 14, 2018
Bleh. We're not going to round-trip this but we shouldn't hit this anyways. Alternatively, we could just return an error. However, that may break things for some users... fixes polydawn#43
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specifically (base64 encoded):
This should decode to (python syntax):
Error:
Test case:
On go-ipfs 0.4.18, run:
ipfs dag get zdpuArHM9moUGtzo47sHeQ5qS4jiuQApyMnFFLoBDdYeouwHy
Downstream bug ipfs/kubo#5776.
The text was updated successfully, but these errors were encountered: