I have a strange problem. I am implementing this API MusicBrainz
When attempting to hit this endpoint with
this.http.get<CoverArt>(
// TODO set fmt to header object
`${this.coverartArchiveBasepath}${releaseId}`,
{ headers: this.headers },
)
Where headers is
headers = new HttpHeaders({
'Content-Type': 'application/json',
Accept: 'application/json',
});
I end up in a endless redirect loop. I think it has to do with the request not actually reading the index.json at the end of it.
if I run
curl "https://coverartarchive.org/release/0cdfc9f5-c4a8-47ce-8ec6-1a2ff6e1004e"
I get back
See: https://archive.org/download/mbid-0cdfc9f5-c4a8-47ce-8ec6-1a2ff6e1004e/index.json
Is this a header issue in my request?
I am a bit lost. I have never encountered a 307 redirect to a index.json.
Appreciate any pointers 🙂