Closed amykglen closed 1 year ago
Thanks so much for reporting this, Amy! NodeNorm is supposed to return null
if it doesn't recognize a CURIE (see e.g. https://nodenormalization-sri.renci.org/1.3/get_normalized_nodes?curie=PR%3AQ18PI&conflate=true).
This appears to be a bug we see in the logs sometimes, which presents as:
INFO: 172.25.13.151:56590 - "GET /docs HTTP/1.1" 200 OK
INFO: 172.25.13.151:56588 - "GET /docs HTTP/1.1" 200 OK
get_normalized_nodes: 2023-03-17 20:55:01,407 Exception: 'NoneType' object has no attribute 'startswith'
ERROR:node_normalizer.normalizer:Exception: 'NoneType' object has no attribute 'startswith'
INFO: 10.11.92.76:35848 - "GET /get_normalized_nodes?curie=PR%3AQ18PI6&conflate=true HTTP/1.1" 500 Internal Server Error
The good news is that this bug isn't present on NodeNorm Prod (see tests below) despite running the exact same version of the NodeNorm software, so it must be something to do with the way the Redis backends are set up or have been loaded. We're currently reloading data on RENCI, so hopefully that will solve this bug by itself. Whether or not it does, I'm planning to add your examples to the NodeNorm test suite so that we can check if the problem reoccurs.
Thanks again!
ah, thanks for the quick response, and pointing out that it works on the Prod service! I'll use that.
Hi @amykglen -- we just reloaded the 2022dec2 release into https://nodenormalization-sri.renci.org/docs, and all four of the example CURIEs are working now! Could you please confirm that this endpoint is working correctly for you?
yes, this issue appears to be resolved! thank you!
you can reproduce this with:
it returns this response:
some curies this seems to happen with are:
it's not a problem if the NodeNormalizer doesn't recognize these curies, but I'd think ideally it would just return
null
for them, instead of throwing an error?thanks!