Skip to content

fix: get_raw_file uses package name and version as user-agent#277

Merged
coroa merged 3 commits intomasterfrom
fix/zenodo-failure-due-to-spurious-user-agent
Jan 8, 2026
Merged

fix: get_raw_file uses package name and version as user-agent#277
coroa merged 3 commits intomasterfrom
fix/zenodo-failure-due-to-spurious-user-agent

Conversation

@coroa
Copy link
Member

@coroa coroa commented Jan 8, 2026

Closes #276 .

Changes proposed in this Pull Request

I could not find any documented evidence but it looks like zenodo is not accepting the
very spurious user agent header of "Mozilla/5.0" anymore.

Instead we use "powerplantmatching/{version}" now.

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in docs.
  • I consent to the release of this PR's code under the MIT license and have added my name to the docs/contributors.md.

@coroa coroa requested a review from fneum January 8, 2026 16:22
Copy link
Member

@lkstrp lkstrp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just happening because of MASTR and and GHR which both sit on Zenodo? Or do I miss anything else

@coroa
Copy link
Member Author

coroa commented Jan 8, 2026

This is just happening because of MASTR and and GHR which both sit on Zenodo? Or do I miss anything else

For me it failed mostly for IRENASTAT.

@coroa coroa merged commit eb806a7 into master Jan 8, 2026
17 of 18 checks passed
@coroa coroa deleted the fix/zenodo-failure-due-to-spurious-user-agent branch January 8, 2026 21:31
@tgilon
Copy link

tgilon commented Jan 9, 2026

Thank you @coroa for fixing this! It was a real pain.

@lkstrp
Copy link
Member

lkstrp commented Jan 9, 2026

For me it failed mostly for IRENASTAT.

Ah and that one @fneum already moved to tubcloud recently. Which means we are back to the need of a release

@coroa
Copy link
Member Author

coroa commented Jan 12, 2026

@lkstrp Would you mind doing the release? Or who can i push!

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 this pull request may close these issues.

Zenodo downloads becoming flaky

3 participants