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

Trying to use POST with binary zip - could not extract metadata #44

Closed
mutanthumb opened this issue Mar 11, 2022 · 1 comment
Closed

Comments

@mutanthumb
Copy link

mutanthumb commented Mar 11, 2022

Hi-
I don't know if anyone is monitoring this or not. I'm following the instructions here and POST for the @dc.xml works but I'm gettting

image

when I try to post a ZIP file. I've tried putting the metadata.xml file in a metadata folder it does not seem to work either in a folder. Using SWORDv2.

curl --request POST \ --url https://testing.deepblue.lib.umich.edu/data/sword/collections/3j3332324/works \ --header 'Content-Disposition: attachment; filename=UMMZbag2.zip' \ --header 'Content-Type: application/zip' \ --header 'Api-key:[redacted]' \ --header 'In-Progress: false' \ --header 'Packaging: http://purl.org/net/sword/package/BagIt' \ --data-binary @UMMZbag2.zip

Returns:
`<sword:error xmlns:sword="http://purl.org/net/sword/" xmlns:arxiv="http://arxiv.org/schemas/atom" xmlns="http://www.w3.org/2005/Atom" href="http://purl.org/net/sword/error/ErrorBadRequest">

Sword v2 server

<title>ERROR</title> 2022-03-11T12:24:04Z [email protected] Could not extract any metadata processing failed `

image

image

I've tried this with your testPackage as well and I get the same result. Any advice would be appreciated. Thanks!

@mutanthumb
Copy link
Author

Seems like an issue on our end.

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

No branches or pull requests

1 participant