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] Cannot read property 'join' of undefined #339

Closed karr-lab-daemon closed 3 years ago

karr-lab-daemon commented 3 years ago

Airbrake error: #9668 Airbrake project: datanator_frontend

Error type: TypeError Error message: Cannot read property 'join' of undefined Where: <no information> Occurred at: Sep 21, 2020 03:16:50 UTC First seen at: Sep 21, 2020 03:16:50 UTC Occurrences: 0 (0 since last deploy on Sep 16, 2020 01:46:22 UTC) Severity: error

URL: https://5eefe4ccb11f51000794e165--datanator.netlify.app/search/atp%20/Escherichia%20coli%20E1002/ File: https://5eefe4ccb11f51000794e165--datanator.netlify.app/static/js/scenes/SearchResults/ReactionSearchResultsList.js

Backtrace:

https://5eefe4ccb11f51000794e165--datanator.netlify.app/static/js/scenes/SearchResults/ReactionSearchResultsList.js:83:in join
https://5eefe4ccb11f51000794e165--datanator.netlify.app/static/js/scenes/SearchResults/SearchResultsList.js:92:in response
jonrkarr commented 3 years ago

This seems fine now. It seems that the REST API occasionally returns malformed data. I pushed a commit to try to handle these cases: e796c6eebd958022360036a4e915860a65483ce6.

karr-lab-daemon commented 3 years ago

Comment from Airbrake: Resolved error reoccurred.

jonrkarr commented 3 years ago

This error is an old Netlify preview: https://5eefe4ccb11f51000794e165--datanator.netlify.app/search/atp%20/Escherichia%20coli%20E1002/

I'm not sure how someone found this. I'm going to see if we can close this old previews automatically. I'm also going to see if we can filter our errors from old previews in AirBrake.

jonrkarr commented 3 years ago

I believe Netlify previews last forever.

To filter out errors from old versions, I bumped the version of the frontend to 0.2.0 and set AirBrake to ignore errors from versions less than this.