Skip to main content
 
 
 
IN THIS SECTION
4 posts
lemos
Last seen: 06/23/2020 - 10:08
Joined: 06/17/2020 - 04:19
Error when filtering for cpc_group_id

Hello all.

I am using R and I am trying to extract patents. I am making use of the library(patentsview).

I am facing the following problem:

When I use the command "cpc_group_id":"A01C", the code runs smoothly and returns a result.

When I try to use the code A61K, it returns the following error message: "Error in xheader_er_or_status(resp) : Internal Server Error (HTTP 500)."

I am a bit lost here. Am I doing something wrong?

Thank you in advance

Russ
Last seen: 12/06/2024 - 09:12
Joined: 11/14/2017 - 22:15
git issue opened

Hi lemos,

It looks like an api problem.  I get a 500 hitting the patents and cpc_subsections endpoints directly in a browser for  A61K.  I also got a 500 for A61N so I opened a git issue.

Russ

lemos
Last seen: 06/23/2020 - 10:08
Joined: 06/17/2020 - 04:19
Ok I actually think I solved…

Ok I actually think I solved it. The code needs to be a bit more populated.

I wrote the following and it worked:

query = '{"_and":[{"_gte":{"patent_date":"2010-01-01"}},{"cpc_section_id":"A"},{"cpc_subsection_id":"A61"},{"cpc_group_id":"A61K"},{"cpc_subgroup_id":"A61K48/00"}]}'

Best regards

Russ
Last seen: 12/06/2024 - 09:12
Joined: 11/14/2017 - 22:15
missing index?

I'd guess that there is an index missing.  You should be able to make direct queries for a specific cpc_group_id.  The api is throwing a 500 error on some and takes a very long time on the ones that work.  I received 500s with a q of {"cpc_group_id":"xxxx"} at the cpc_subsections endpoint for any of these xxxx values B64C, C11D, E21B, B60W, B41J, G06T, C08F and H02K.  Other values like A01C work but it took 50 seconds to respond.

Russ