kids-first/kf-lib-data-ingest

Authentication failure is masked by file get error

Opened this issue · 0 comments

When the ingest library tries to fetch a file from Data Tracker it must provide the Data Tracker developer token in the request headers otherwise it won't be authenticated and able to fetch the file. There is currently no way to tell when the authentication fails because authentication silently fails and then gets masked by a subsequent error later in the file fetch process:

image