Hi,
I’m having a problem getting documents using the API.
I can get the filing history just fine using a url like this…
https://api.companieshouse.gov.uk/company/06539163/filing-history
That will give me a response like this…
{“items”:[
{“category”:“incorporation”,“date”:“2008-03-19”,“description”:“incorporation-company”,“links”:{“self”:"/company/06539163/filing-history/MjAwMTY2MjMyOWFkaXF6a2N4",“document_metadata”:“https://frontend-doc-api.company-information.service.gov.uk/document/XJ5LJZHPw969QN4B3www_BHeVLETO1rg0CmSzVkDKiA"},“type”:“NEWINC”,“pages”:12,“barcode”:“XODHPY46”,“transaction_id”:"MjAwMTY2MjMyOWFkaXF6a2N4”}
],
“start_index”:0,“items_per_page”:25,“total_count”:4,“filing_history_status”:“filing-history-available”}
However, when I try to get a “document_metadata” link I always get a 500 Internal Server Error…
HTTP/1.1 500 Internal Server Error
Date=Fri, 17 May 2024 13:23:30 GMT
Server=nginx/1.22.1
Content-Length=0
Connection=keep-alive
I get this for any document for any company. I’ve tried putting in an “Accept” header but that doesn’t make a difference.
Would you be able to help me figure out what it is I am doing wrong?
Thanks
dan