Skip to main content
 
 
 
IN THIS SECTION
4 posts
Gianni De Bruyn
Last seen: 01/17/2022 - 12:15
Joined: 01/17/2022 - 12:08
Server error when quering

Hi,

I am using the PatentsView API wrapper to get specific data from the database. The API wrapper worked perfectly until today (1/17/2022) when all of a sudden I received "server error when quering for value ..." I did not change any of the information in the sample_config or the sample_patents documents and it just stopped working overnight. I also tried with the original files from Github and it gave me the same error for the example patents in the "sample_patents" file. Does anyone know if the servers are down or how I can fix this? I've tried downloading all of the files again as well.

Thank you.

Michael Sobelman
Last seen: 01/18/2022 - 13:08
Joined: 01/17/2022 - 15:53
Looks like a bunch of the…

Looks like a bunch of the old endpoints were finally deprecated and now they are moving to the new v1 api? I don't see the swagger docs available for all of the replacement endpoints. Hopefully those will get published soon?

Russ
Last seen: 03/21/2024 - 09:05
Joined: 11/14/2017 - 22:15
swagger is published

Michael,

On https://patentsview.org/api-query-language-v0.1 there is a link to the swagger page (https://search.patentsview.org/swagger-ui/). You'll need to request an api key to get it to respond to your requests.  What I don't understand is that four of the existing endpoints do not seem to be present on the test server, there isn't one for patents, assignees, inventors or locations.  

I have an api key and the test server is responding on some of the endpoint.  (Some of the endpoints have issues that I've reported.)  If you download the swagger object and upload it to https://editor.swagger.io/ you'll see that there are errors in it.  I've reported that as well. 

I'm seeing the same gateway errors on requests to api.patentsview.org.  I'd guess that something is wrong with the production server or code. 

Russ Allen

PVTeam
Role: moderator
Last seen: 04/26/2024 - 10:39
Joined: 10/17/2017 - 10:47
Server Up

Hello! The server error when querying the API between Monday at 1:26am and this morning (1/18)  has now been resolved - the server went down and is now restored. 

The new ElasticSearch API is accessible by users with an API key and the MySQL endpoints from the "old" API are still available and updated with the most recent data update. Both APIs are currently running simultaneously, but do have separate mechanisms for accessing them. Some additional information is available on the API Purpose and FAQ pages if you would like to learn more. 

Thank you,

PVTeam