web3-storage/web3.storage

Unable to post CAR file.

legowerewolf opened this issue · 0 comments

> curl https://api.web3.storage/car --oauth2-bearer $token --data-binary @./archive.car --verbose
*   Trying [2606:4700::6812:a7e]:443...
* Connected to api.web3.storage (2606:4700::6812:a7e) port 443 (#0)
* schannel: disabled automatic use of client certificate
* ALPN: offers http/1.1
* ALPN: server accepted http/1.1
* using HTTP/1.1
* Server auth using Bearer with user ''
> POST /car HTTP/1.1
> Host: api.web3.storage
> Authorization: Bearer [redacted]
> User-Agent: curl/8.0.1
> Accept: */*
> Content-Length: 1072
> Content-Type: application/x-www-form-urlencoded
>
* schannel: remote party requests renegotiation
* schannel: renegotiating SSL/TLS connection
* schannel: SSL/TLS connection renegotiated
< HTTP/1.1 500 Internal Server Error
< Date: Fri, 09 Jun 2023 18:13:07 GMT
< Content-Type: application/json;charset=UTF-8
< Content-Length: 74
< Connection: keep-alive
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: Link, Count, Page, Size
< Server: cloudflare
< CF-RAY: 7d4b58c059e8a21a-YYZ
<
{"code":"HTTP_ERROR","message":"CBOR decode error: tag not supported (3)"}
* Connection #0 to host api.web3.storage left intact

archive.car wrapped in archive.zip because GH doesn't like .car format

archive.car produced with ipfs dag export QmWiq6zk6v2RWjszULHKKeG9WFBKsnjvkd35hTKJGeJwFv > archive.car