Page 1 of 1

Sending Data for multiple GET request giving Parse Error

Posted: Tue Nov 27, 2018 12:47 pm
by harshdeepkanhai
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

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' }
Could you explain the reason why?

Re: Sending Data for multiple GET request giving Parse Error

Posted: Tue Nov 27, 2018 1:40 pm
by EPO / OPS Support

I cannot see from your example why you get that response. But also, we do not have legal events that would give you exact information about patents being dead or alive and we also don't have legal status reponse for every biblio loaded in our database. Also, in OPS legal you have an option to use biblio and legal constituents in the same query so no combining Publish services and Legal is not really necessarily.

In order for me to know why you sometimes get errors I need more information and if you have those then send it to me via patentdata(at)

Vesna for OPS