KarrLab / datanator_frontend

Graphical web-based interface for the Datanator toolkit for discovering data for modeling cells
https://datanator.info
MIT License
1 stars 1 forks source link

[Airbrake] [Production] Request failed with status code 400 #321

Closed karr-lab-daemon closed 3 years ago

karr-lab-daemon commented 3 years ago

Airbrake error: #3696 Airbrake project: datanator_frontend

Error type: Error Error message: Request failed with status code 400 Where: <no information> Occurred at: Aug 01, 2020 10:22:23 UTC First seen at: Aug 01, 2020 10:22:23 UTC Occurrences: 0 (0 since last deploy on Jul 27, 2020 13:19:40 UTC) Severity: error

URL: https://datanator.info/reaction/data/ File: https://datanator.info/static/node_modules/axios/lib/core/createError.js

Backtrace:

https://datanator.info/static/node_modules/axios/lib/core/createError.js:16:in 
https://datanator.info/static/node_modules/axios/lib/core/settle.js:18:in createError
https://datanator.info/static/node_modules/axios/lib/adapters/xhr.js:59:in settle
https://datanator.info/src/instrumentation/xhr.ts:41:in 
jonrkarr commented 3 years ago

Fixed handling for reactions that don't have substrates and products in 25b77e9509770dcbfa7425735d919395e9f5563f

karr-lab-daemon commented 3 years ago

Comment from Airbrake: Resolved error reoccurred.

lzy7071 commented 3 years ago

Invalid ebi API requests causes server error: {"requestedURL":"https://www.ebi.ac.uk/proteins/api/proteins?offset=0&size=1&gene=N", "errorMessage":["gene parameter size should be between 3 and 50"]}

jonrkarr commented 3 years ago

The error is because we're sending an invalid request to the EBI's API. I fixed this by switching to a more reliable method. Rather than retrieving UniProt entries by gene name (which are not unique), we can retrieve UniProt entries by KO id.

karr-lab-daemon commented 3 years ago

Comment from Airbrake: Resolved error reoccurred.

jonrkarr commented 3 years ago

This now appears to be due to intermittent failures of the REST API on these endpoints