Closed bonniegee closed 3 years ago
That's bizarre - I'll try to replicate this. But as far as I know, and I should know pretty far, ASnake doesn't alter json values prior to handing them off to requests. The only transformation done is altering params which get passed in as lists to have '[]' on the end of them.
https://github.com/archivesspace-labs/ArchivesSnake/blob/master/asnake/client/web_client.py#L19
Thanks @pobocks! I (and @helrond ) did some further testing and the issue was indeed on my end--I fed ArchivesSnake the full URL instead of the URI, which is what caused the issue.
I'm unable to create a new digital object using the ArchivesSnake client, if the digital object has a note.
This code:
I get the following error:
As noted above, I am providing the
jsonmodel_type
property.If I use the python requests library to post the same, it's successful:
I think
"jsonmodel_type": "note_digital_object"
is getting stripped somewhere in ArchivesSnake, but I'm not 100% sure what's happening.