Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

bad API key when clicking "view categories" on a public tabular file #29

@pdurbin

Description

@pdurbin

Hi! We are playing around with Data Explorer v2 over at Harvard Dataverse:

I've noticed some strange behavior when I try my 2023-01-03.tab file at https://dataverse.harvard.edu/file.xhtml?fileId=6867331&version=4.0

Screenshot 2023-10-27 at 3 59 21 PM

I end up on this URL:

https://dataverse.harvard.edu/dataverse-data-explorer-v2/?fileId=6867331&fileMetadataId=6747643&dvLocale=en&siteUrl=https://dataverse.harvard.edu

When I click "view categories" for language, the console tells me "bad API key":

Screenshot 2023-10-27 at 4 00 20 PM

The bad API key/token is "null" from this URL:

https://dataverse.harvard.edu/api/access/datafile/6867331?format=subset&variables=v30256085&key=null

Now here's the interesting thing. If I hack on the URL and enter a valid API key like this...

https://dataverse.harvard.edu/dataverse-data-explorer-v2/?fileId=6867331&fileMetadataId=6747643&dvLocale=en&siteUrl=https://dataverse.harvard.edu&key=REDACTED

... the plot looks fine when I click "view categories":

Screenshot 2023-10-27 at 3 10 25 PM

This is ok in a pinch but a public dataset shouldn't need any API key at all, right?

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