Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept header of text/csv returns blank lines #213

Closed
plawton-umd opened this issue Aug 12, 2022 · 3 comments
Closed

Accept header of text/csv returns blank lines #213

plawton-umd opened this issue Aug 12, 2022 · 3 comments
Assignees
Labels
B13.1 bug Something isn't working s.medium

Comments

@plawton-umd
Copy link

Hello,

When working though the formats from https://nasa-pds.github.io/pds-api/guides/search/response_formats.html,
I found that
curl --get 'https://pds.nasa.gov/api/search-sbnumd/1.0/bundles/urn:nasa:pds:gbo-kpno::4.0/collections' --header 'Accept: text/csv'

returns only blank lines. Likewise for the command

curl --get 'https://pds.nasa.gov/api/search-sbnumd/1.0/bundles/urn:nasa:pds:gbo-kpno::4.0/collections' --header 'Accept: text/csv' --data-urlencode 'fields=lid'

Expect similar output, but in different format as

curl --get 'https://pds.nasa.gov/api/search-sbnumd/1.0/bundles/urn:nasa:pds:gbo-kpno::4.0/collections' --header 'Accept: application/kvp+json' --data-urlencode 'fields=lid'
{
"summary":{"q":"","hits":6,"took":80,"start":0,"limit":100,"sort":[],"properties":[]},
"data":[ {
"lid":"urn:nasa:pds:gbo-kpno:document" },
{
"lid":"urn:nasa:pds:gbo-kpno:hyakutake_spectra" },
{
"lid":"urn:nasa:pds:gbo-kpno:image-19p" },
{
"lid":"urn:nasa:pds:gbo-kpno:image-9p" },
{
"lid":"urn:nasa:pds:gbo-kpno:mosaic-9p" },
{
"lid":"urn:nasa:pds:gbo-kpno:nirimage-9p" }
]
}

@jordanpadams I did not get the bug form, so alerting you to this issue submission.

Thanks,
Pat

@al-niessner
Copy link
Contributor

fixed with NASA-PDS/registry-api#173

@al-niessner
Copy link
Contributor

@jordanpadams what needs to be done with this ticket? As previously noted above the issue was already identified and fixed.

@jordanpadams
Copy link
Member

@al-niessner missed your comment about

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B13.1 bug Something isn't working s.medium
Projects
None yet
Development

No branches or pull requests

3 participants