Hi,
I'm using the Apple News API to create articles for development / test purposes
I see that the articles do get created in the Published Articles tab in the Publisher app but every api request returns with a
500 error
Status read failed: Connection reset by peer
I have found that if the request does not include the binary info for images, this does not happen.
I get an expected error like this
{"errors":[{"code":"INVALID_DOCUMENT"....
So, I can defintely connect via API and get content into the New Publisher App, and see expected error results back from the API when the request is made invalid.
The client code is in Perl.
Is there some special configuration setting that I'm missing?
Appreciate any advice,
Ted
Here is some info about the request and response with sensitve info removed
{
"request": {
"headers": "Authorization: HHMAC; key=<KEY>; signature=<SIGNATURE>; date=2017-01-26T23:34:19Z\nUser-Agent: NativeArticleSuperUA :)\nContent-Type: multipart/form-data; boundary=WBrPpVKQJGhWBeCephZzRxbemXtiGO\nProtocol: HTTP/1.1\n",
"parts": [
{
"headers": "Content-Type: application/json\nContent-Disposition: form-data; name=metadata\n"
},
{
"headers": "Content-Type: application/json\nContent-Disposition: form-data; filename=article.json; name=article.json; size=23965\n"
},
{
"headers": "Content-Type: image/jpeg\nContent-Disposition: form-data; filename=dnc-that-fight-with-fbi-over-hacked-servers-was-a-2-2160-1483749574-4_dblbig.jpg; name=dnc-that-fight-with-fbi-over-hacked-servers-was-a-2-2160-1483749574-4_dblbig.jpg; size=104599\n"
},
{
"headers": "Content-Type: image/jpeg\nContent-Disposition: form-data; filename=sub-buzz-6195-1483749403-1.jpg; name=sub-buzz-6195-1483749403-1.jpg; size=1252918\n"
}
]
},
"success": 1,
"resource_id": "",
"status_code": "500",
"response": {
"headers": "Content-Type: text/plain\nClient-Date: Thu, 26 Jan 2017 23:34:22 GMT\nClient-Warning: Internal response\n",
"content": "Status read failed: Connection reset by peer at /perl5/site_perl/5.14.2/Net/HTTP/Methods.pm line 265.\n"
},