phylotastic / phylotastic-portal

Web tool (ruby on rails) providing access to phylotastic services for acquiring species trees.
https://github.com/phylotastic/phylotastic/wiki
1 stars 3 forks source link

trap apparent null return from datelife #320

Open arlin opened 6 years ago

arlin commented 6 years ago
  1. Choose taxon "Anura", get 20 popular names.
  2. Choose "Anura" from list of matching taxa.
  3. Choose "get tree"

An error message will appear when the portal is trying to get the SDM tree. See error messages below.

Screen Shot 2018-07-06 at 1.23.06 PM.png

Screen Shot 2018-07-06 at 1.25.17 PM.png

ducvan0212 commented 6 years ago

The error message is all the portal got from the service. It is not the error from the portal, so in order to figure out what is wrong, I suggest to debug the library from the service. What do you think, @abusalehmdtayeen ?

abusalehmdtayeen commented 6 years ago

@ducvan0212 , I can return a special status code for this specific error when it occurs in datelife. Then based on the status code you can decide whether to show the scale option in the portal or not.

ducvan0212 commented 6 years ago

@abusalehmdtayeen I can use regex to detect the error, and display appropriate and friendly message in the portal. What message do you want to show if the error occurs, @arlin ?