Skip to main content
Question

File download fails with SSL eof error

  • March 11, 2026
  • 3 replies
  • 111 views

Forum|alt.badge.img

I’m trying to download a file that I created via the API, but keep getting an SSL error. Note that I can download the same file successfully using the API Developer playground, providing just the file ID and my developer token. See curl output below:

$ curl -i -L "https://api.box.com/2.0/files/ [removed by moderator] /content" -H "authorization: Bearer <REDACTED_TOKEN>"
HTTP/2 302
date: Wed, 11 Mar 2026 12:55:49 GMT
x-envoy-upstream-service-time: 259
location: <REDACTED_LINK>
box-request-id: 07a3f1d1a260e4d0957df37044c38d148
cache-control: no-cache, no-store
strict-transport-security: max-age=31536000
via: 1.1 google
content-length: 0
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000

curl: (35) error:0A000126:SSL routines::unexpected eof while reading

3 replies

The reason it works in the Developer Playground is that the browser handles the heavy lifting of modern TLS handshakes and headers automatically.


Forum|alt.badge.img
  • Author
  • New Participant
  • March 13, 2026

Thanks for the reply ​@jofra886archer - it appears the issue was transient - I’ve tried the request again today and it works no problem!


Forum|alt.badge.img
  • Author
  • New Participant
  • March 19, 2026

Unfortunately the issue has returned - it appears to be transient. I wonder if it is related to SSL/TLS syncing somehow...