Skip to content

Nothing in search seems to work at all #2

@mfschmidt

Description

@mfschmidt

I have a functional account, but access to actual data has not yet been approved by my institution. I have been using the components available to the public while I wait. The documentation claims no credentials are needed for search.

I followed the example notebook by executing the following code:

url = "https://ndar.nih.gov/api/search/nda_sw_removal/dataElementSearch/full?size=10"
headers = {"Accept": "application/json", }
data = "depression"
r = requests.post(url, headers=headers, data=data)
r.text

The contents of r.text:

'An internal error prevented the processing of this request'

I tried to access the swagger API at https://nda.nih.gov/api/search and was asked for my login credentials. If I supply them, I am repeatedly asked to re-supply them. If I cancel, I get a "Whitelabel Error Page"

Finally, I found that I can search the GUI at https://nda.nih.gov/search easily and quickly. This shows the search engine is working at some level, just not for the API.

Has the API been restricted to only users with data access rights? Is it broken?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions