Sending Data for multiple GET request giving Parse Error
Posted: Tue Nov 27, 2018 12:47 pm
I made an API over the Published Data Service(PDS) and Legal Data Service(LDS). It reads from a csv list of numbers and sends a get request in a loop till we get response of every numbers in the list. It gives a formatted output of an array with the response of the numbers(I extracted only invention-title(eng), Document_no(docdb), publication_date, priority_date, country, and legal status i.e. used the legal status codes to analyze if the application is active or Dead). I made the entire logic in a GET request encapsulating the PDS and LDS both GET request and send a response of array of the required data of the numbers. But Sometime I am getting Could you explain the reason why?
Code: Select all
{ Error: Parse Error
[0] at Socket.socketOnData (_http_client.js:441:20)
[0] at Socket.emit (events.js:182:13)
[0] at addChunk (_stream_readable.js:283:12)
[0] at readableAddChunk (_stream_readable.js:264:11)
[0] at Socket.Readable.push (_stream_readable.js:219:10)
[0] at TCP.onStreamRead (internal/stream_base_commons.js:94:17) bytesParsed: 684, code: 'HPE_INVALID_CONSTANT' }