Open crew102 opened 5 years ago
Hi Chris! Thanks for reporting this issue. From your description this looks like an issue with load on the API server. We'll further look into this and let you know what we find
Now also having trouble getting all the fields for the patents endpoint. I just sent the request shown below at 9:29 with "https://github.com/ropensci/patentsview" as the user agent. Hope that helps.
This is happening again, where it takes a long time to get results if many fields are asked for. I haven't used the API until recently, so I'm not sure if this is a problem with the migration to the new server.
Hi Chris - We are taking a look at this and will get back to you as soon as we can. ~Christina
Hi -
I'm the maintainer of the R package called patentsview, which provides an R client to the PatentsView API. I noticed some unexpected behavior where the API isn't responding to requests when the user is asking for many fields, especially when it comes to non-patents endpoints. This behavior is not deterministic, meaning sometimes I can get all the fields associated with the patents endpoint in a reasonable time frame, while other times I can't (though note I haven't been able to get all fields associated with the assignees endpoint at all, at least recently):
Created on 2019-09-19 by the reprex package (v0.2.0.9000).
few notes:
search_pv()
print out the URL that it's requesting in the examples above, in case that's easier for you to debug. I know there are a lot of fields in the URLs and hence the example isn't exactly minimal/targeted, but I'm not sure what more I can do to hone in on what the issue actually is.search_pv()
gets the set of retrievable fields for a given endpoint by scrapping the fields from your webpage (e.g., the patents endpoint field list here: http://www.patentsview.org/api/patent.html). I don't think it's a matter of the wrong fields being requested, as sometimes a request will work for a given set of fields and other times it will hang indefinitely (at least for the patents endpoint...Recently I haven't been able to get all fields for the assignees endpoint).