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

Response MediaType CSV failing #159

Closed
jonaraphael opened this issue Jan 8, 2024 · 6 comments · Fixed by #160
Closed

Response MediaType CSV failing #159

jonaraphael opened this issue Jan 8, 2024 · 6 comments · Fixed by #160

Comments

@vincentsarago
Copy link
Member

@jonaraphael thanks for the report,

It's interesting because using other streaming output format like ndjson seems to work fine

$ curl https://api.cerulean.skytruth.org/collections/public.slick_plus/items?sortby=slick_timestamp&datetime=2023-12-01T00:00:00Z/2023-12-08T00:00:00Z&filter=machine_confidence%20GTE%200.6%20AND%20area%20GTE%2020000000&f=ndjson | wc -l 
10

$ curl https://api.cerulean.skytruth.org/collections/public.slick_plus/items?sortby=slick_timestamp&datetime=2023-12-01T00:00:00Z/2023-12-08T00:00:00Z&filter=machine_confidence%20GTE%200.6%20AND%20area%20GTE%2020000000&f=csv | wc -l 
2

@vincentsarago
Copy link
Member

Found the bug 🙏

if v is not None

curl https://api.cerulean.skytruth.org/collections/public.slick_plus/items\?sortby\=slick_timestamp\&datetime\=2023-12-01T00:00:00Z/2023-12-08T00:00:00Z\&filter\=machine_confidence%20GTE%200.6%20AND%20area%20GTE%2020000000\&f\=csv\&offset\=2 | wc -l    

@vincentsarago
Copy link
Member

Note:
#160 will be merged an released into a 0.6.0 release but I'll also backport this to a 0.5.* version so you can redeploy cerulean_cloud

@jonaraphael
Copy link
Author

Thank you!

@aemonm
Copy link

aemonm commented Sep 17, 2024

@vincentsarago can you confirm this fix was backported into 0.5.*. I'm still seeing it on our latest deployments.

@vincentsarago
Copy link
Member

@aemonm 🤔 I think I did 0.5.7...0.5.8

I'm not remembering well what was the issue to be honest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants