biothings / biomedical_id_resolver.js

js library for converting biological ids in batch
Apache License 2.0
1 stars 2 forks source link

Handle empty responses from node normalizer #84

Closed tokebe closed 2 years ago

tokebe commented 2 years ago

Due to TranslatorSRI/NodeNormalization/issues/113, we occasionally get a response of {} from the node normalizer, which previously we didn't handle, causing a query to fail.

This PR simply checks for this case, and replaces the response with what we would expect: an object where each curie is a key pointing to null.

colleenXu commented 2 years ago

this is working well for me, and is helping various operations work (linked)

colleenXu commented 2 years ago

I suggest deploying ASAP. the updates to the x-bte annotations have already been pushed/deployed