-
Notifications
You must be signed in to change notification settings - Fork 9
{"errors":[{"status":"422","title":"found unpermitted parameter: :volume"}]} #8
Comments
Hi there. I made some changes and a push to the repository. This is also in the non-daily-logs branch. See if that does what you need and let me know. You'll need to set "output_volume: false" in the yml config file and then if you want volume, set an environment variable for OUTPUT_VOLUME to true. (or the opposite way around.) For example:
For a while I had a flag for "only output stats" or something like that and that wouldn't suck in any log files at all and would just work with whatever was already in the sqlite database. Looks like I probably should bring it back. It actually always calculates volume, but it just wasn't outputting it. |
@sfisher on second thought, while the Bottom line, the boolean alone won't help us we'll probably run Counter Processor 0.0.1 so we can use it with the DataCite hub. So please don't feel any pressure from me to put out another release! Thanks! |
I'm going to close this since I think it's resolved and the |
@sfisher you're going to hate me but I didn't test pull request #5 with the DataCite hub. Now I'm getting "found unpermitted parameter: :volume" when I try to send my report.
Here's how the error looks:
Here's the command I'm using
curl --header "Content-Type: application/json; Accept: application/json" -H "Authorization: Bearer $JSON_WEB_TOKEN" -X POST https://api.test.datacite.org/reports/ -d @src/test/java/edu/harvard/iq/dataverse/makedatacount/sushi_sample_logs3.json
That sushi_sample_logs3.json report can be found at IQSS/dataverse@36fa81a
It looks like you already reported this at datacite/sashimi#23
We should revert my pull request, right? Or add a boolean so we can turn on and off the sending of volume?
The text was updated successfully, but these errors were encountered: