Listing releases of a repo returns no Link header

Hello, I’m using this API to get the releases of a repo, but I can’t find a Link header in the API response.

Test: https://api.github.com/repos/bitcoin/bitcoin/releases

Here is one of my request ids:

X-GitHub-Request-Id: B168:3D51:A13F88:138C05D:5BF66C4E

1 Like

Hi @ggicci,

Thanks for being here! When you send the request via curl, are you able to see the header?

No, I can’t see it.

> GET /repos/bitcoin/bitcoin/releases HTTP/1.1
> User-Agent: curl/7.29.0
> Host: api.github.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 30 Nov 2018 19:52:37 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 58067
< Server: GitHub.com
< Status: 200 OK
< X-RateLimit-Limit: 60
< X-RateLimit-Remaining: 59
< X-RateLimit-Reset: 1543611157
< Cache-Control: public, max-age=60, s-maxage=60
< Vary: Accept
< ETag: "cddd12832e689930ef2728e80ad0d34d"
< X-GitHub-Media-Type: github.v3; format=json
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type
< Access-Control-Allow-Origin: *
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< X-Frame-Options: deny
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Content-Security-Policy: default-src 'none'
< Vary: Accept-Encoding
< X-GitHub-Request-Id: 96AA:1B27:3D82C7:5337A3:5C019504
<

@andreagriffiths11 sorry to resurrect a dead thread but is there any followup to this? I’m experiencing the same issue for the GET /user/repos api (Docs link)

It actually was working for me until around November 16th (of this year…), then all of a sudden the Link header was no longer being returned from my API requests.

Here’s a sample of the headers returned from one of my recent requests:

Server: GitHub.com
Date: Fri, 04 Dec 2020 03:13:34 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 142533
Status: 200 OK
Cache-Control: private, max-age=60, s-maxage=60
Vary: Accept, Authorization, Cookie, X-GitHub-OTP
ETag: "fe1e1752b369e304b5947ae8986b37304e55525c2ddb8e433f231a884fcfd074"
X-OAuth-Scopes: :
X-Accepted-OAuth-Scopes: :
X-GitHub-Media-Type: github.v3; format=json
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4998
X-RateLimit-Reset: 1607054434
X-RateLimit-Used: 2
Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Frame-Options: deny
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Content-Security-Policy: default-src 'none'
Vary: Accept-Encoding, Accept, X-Requested-With
X-GitHub-Request-Id: E69F:63DD:34E9B9:5D3B28:5FC9A95D

Apologies for the delay @rperryng, I’ll make sometime today to dig into this deeper. Thanks for the ping!

1 Like