-
Notifications
You must be signed in to change notification settings - Fork 25
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
Creating dataset using create_dataset() yields 500 error #23
Comments
The server.log file would be quite valuable to us. Can you please either attach it here (you'll have to add ".txt") or email it to [email protected]? |
Yeah sure thing! I have attached the .txt file with this message. |
@thomascli19 thanks, are you running Dataverse 4.15? If so, here's where the NullPointerException is being thrown: |
I'm actually running version 4.9.4. Would this NullPointerException that is being thrown also appear in this version? |
Line 273 looks the same: Can you please try it on https://demo.dataverse.org to see if you get a 500 error there too? |
Just tried and it yields the same error, even when I input the "body" argument as an empty list. |
@thomascli19 that's not so great if "create dataset" doesn't work. I assume you're aware that you could also use In #21 a new maintainer is being sought. Let me at least mention @monogan in case he has time to take a look. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Any news on this issue? I'm coming across the same problem with
Note: I also tried the SWORD-based workflow described on this same webpage to no avail.
|
I'm got stuck here too. It would have saved me time if this was mentioned in the README. Will try |
I'm sorry this isn't working. I'll have time this weekend to look. |
This workaround (#82 (comment)) using |
I previously got the same errors, but have an httr code working in R now. If others can help me with my question in #82(comment) we may be able to solve the question here as well (as the dataverse package uses httr as well in a similar fashion)? |
With current version on dev the error seems a bit more narrowed down. library("dataverse")
packageVersion("dataverse") # dev
#> [1] '0.3.11'
metadat <- list(
title = "test upload",
creator = "Shiro Kuriwaki",
datasetContact = "Shiro Kuriwaki",
description = "Test Create",
Subject = "Other"
)
create_dataset(
dataverse = "kuriwaki",
body = jsonlite::toJSON(metadat, auto_unbox = TRUE),
server = "demo.dataverse.org",
key = rstudioapi::askForPassword()
) Created on 2022-04-09 by the reprex package (v2.0.1) This gives
So perhaps getting the metadata slots right could do it |
Yes. You either have to create a json file with the required metadata fields #82 (comment) of which you can get the correct json format at https://guides.dataverse.org/en/5.3/_downloads/dataset-create-new-all-default-fields.json, or you can recreate the json with a very ugly paste code (doesn't require the json file) #82 (comment), or you can do it with an ugly |
Please specify whether your issue is about:
Hi There,
I was trying out some of the functions for the dataverse package, and came across it creating a 500 error every time I tried to execute the function. Unfortunately, I can't put my server and API key, but I can show what I did attempt:
When running the debugger, I noticed the 500 error occurs when the POST() function is used from the 'httr' package (which makes sense), so I am trying to see the cause of this (be it permission or something else).
Just in case, the sessionInfo() yields the following:
If needed, I can also provide the log from the server that shows the "API internal error"
Thanks!
The text was updated successfully, but these errors were encountered: