Where are we with this? fix newer dataverse compatibility by adding content-type=application/json header - https://github.com/gdcc/pyDataverse/pull/145
We want this fix for 0.3.2, right?
By the way, I added this breaking change (on the Dataverse backend) to the new-ish API Changelog in this PR: Explain that 5.6 introduced a breaking change to the create dataset API #10467
Oddly, I have not encountered this problem anymore when testing. Afaik httpx does add the content header according to what has been passed. As a safety measure I have added a small check to ensure httpx knows that it is JSON.
On the right-hand-side you can see what has been sent upon the POST request
Tests are running fine, would push it directly to master
Great! That PR closes https://github.com/gdcc/pyDataverse/issues/143 . Should we close that issue manually with an explanation? And add the 0.3.2 milestone to it?
Yes, that is a good idea :smile:
Added to the milestone and writing a closing comment now
Looks great. I just closed the PR with a comment for @Péter Pallinger (who opened it): https://github.com/gdcc/pyDataverse/pull/145#issuecomment-2104557901
Last updated: Nov 01 2025 at 14:11 UTC