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

New Github releases not triggering new Zenodo version #32

Open
martintoreilly opened this issue Sep 14, 2018 · 2 comments · May be fixed by #33
Open

New Github releases not triggering new Zenodo version #32

martintoreilly opened this issue Sep 14, 2018 · 2 comments · May be fixed by #33

Comments

@martintoreilly
Copy link

martintoreilly commented Sep 14, 2018

Problem

A (now draft) v0.2 Github release looks like it didn't trigger an automatic v0.2 Zenodo version. The v0.2 Zenodo version still links to the v0.1 Github version as the "supplement to" in the "related identifiers" box and when I look at the entry for the linked code-cite repo in the Github section of my Zenodo account I see three entries for a v0.3 Github release with a "failed" status (see screenshot below).

image

Clicking on one of the "failed" statuses and then the "Errors" tab gives the following detail.

{
    "errors": "Metadata file \".zenodo.json\" is not valid JSON."
}

Solution

I think the issue is an escaped single quote in the description field of the .zenodo.json file (i.e. "Software Sustainability Institute\'s" rather than "Software Sustainability Institute's").

With the \' the file fails validation with the following error when I try and validate it on https://codebeautify.org/jsonvalidator. With the ' unescaped, the file validates.

Error: Parse error on line 2:
{	"description": "<p>This version of 
-----------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'

Also, the string state machine on json.org does not show single quote as an escaped character (via this Stackoverflow article).

image

@martintoreilly martintoreilly linked a pull request Sep 14, 2018 that will close this issue
@martintoreilly martintoreilly changed the title New Github releases not triggering new Zenodo entry New Github releases not triggering new Zenodo version Sep 14, 2018
@martintoreilly
Copy link
Author

Fix submitted via PR #33.

@tueda
Copy link

tueda commented Aug 28, 2019

Maybe this is a similar issue, maybe not, but I got an Unknown error on a GitHub release today:
image

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.

2 participants