USDA / USDA-APIs

Do you have feedback, ideas, or questions for USDA APIs? Use this repository's Issue Tracker to join the discussion.
www.usda.gov/developer
107 stars 16 forks source link

Food central API 500 error on any request to search endpoint #101

Closed sas604 closed 3 years ago

sas604 commented 3 years ago

Any request to /api.nal.usda.gov/fdc/v1/foods/search returns 500 "Internal Server Error","message":"None of the configured nodes are available"

boloni225 commented 3 years ago

Yeah I noticed the same thing, search doesn't seem to work on the USDA site either. I'm wondering if it's under maintenance or if it's down altogether. I sent them a message yesterday.

andreivladmatei commented 3 years ago

unfortunately is not the first time :(

boloni225 commented 3 years ago

unfortunately is not the first time :(

How often have you seen it happen? I just made and released an app on the Playstore with the API. No complains though the database is free and there's tons of data.

AdamWier commented 3 years ago

Thanks for opening this. Same problem for over 24 hours. And I'm complaining just a little.... It is the government and our taxes after all, and not some guy's hobby project. Going down for a while is something that can happen, sure, but going on more than a day and no message on their site or anything...? Maybe no one's around on the weekend.

littlebunch commented 3 years ago

Make sure you log a help desk request for this as well https://nal.altarama.com/reft100.aspx?key=FoodData.

AdamWier commented 3 years ago

Thanks for the link! Done and done.

micimize commented 3 years ago

Here is the response from a /v1/foods/list swagger request:

{
  "timestamp": "2020-09-27T20:30:48.396+0000",
  "status": 500,
  "error": "Internal Server Error",
  "message": "None of the configured nodes are available: [{#transport#-1}{mehEJHwZRAqioQi-9UxMdg}{fdc-node1-azure.nal.usda.gov}{10.9.246.12:9300}, {#transport#-2}{0-HGvlpWTFe0UzNGyISANA}{fdc-node2-azure.nal.usda.gov}{10.9.246.13:9300}]",
  "path": "/portal-data/api/v1/foods/list"
}
Response headers
 access-control-allow-methods: POST GETOPTIONS 
 access-control-allow-origin: * 
 age: 461 
 cache-control: no-cache 
 content-length: 364 
 content-type: application/json;charset=UTF-8 
 date: Sun27 Sep 2020 20:38:30 GMT 
 etag: W/"16c-DvixKlDVx3fYrEuI8oVxTjMWQcc" 
 expires: -1 
 server: nginx/1.18.0 + Phusion Passenger 6.0.6 
 status: 500500 Internal Server Error 
 strict-transport-security: max-age=63072000; includeSubDomains; preloadmax-age=31536000; includeSubDomains; preload 
 via: https/1.1 api-umbrella (ApacheTrafficServer [cMsSf ]) 
 x-cache: MISS 
 x-powered-by: ExpressPhusion Passenger 6.0.6 
hphungnal commented 3 years ago

@micimize @andreimateiro @AdamWier @boloni225 @littlebunch Apologies for the inconvenience! The site and API should be up and running again now. It seems that the Elasticsearch nodes went down at the start of the weekend. And yes, unfortunately, we do not have staff monitoring over the weekend.

AdamWier commented 3 years ago

Thank you for the update and your hard work! :)