-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to decode cbor from ucanto cbor transport? #193
Comments
update: it's because those bytes aren't CBOR, they're CAR files (with dag-cbor blocks) |
The following script tries to decode using both error
script
|
@gobengo Did you have success trying to fix it? I am having an issue with @ipld/car package and I am not able to fix it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
Question
Here's something I tried:
xxd
to hex encode it: on macpbcopy | xxd -p
Expected one of [0-9], '(', '.', [Ee], [ \t\n\r], "/", ',' at line 1, column 2 (byte 2) after
@ipld/dag-cbor
npm module to decode (see script below)Example ucanto car+cbor request body
The text was updated successfully, but these errors were encountered: