dataverse-complete.json and not change anything on that file but when exec my app I always get error like this :
{"status":"ERROR","message":"Error parsing Json: Unexpected char 45 at (line no=1, column no=2, offset=1)"}.
This is my josn file content :
{
"name": "Scientific Research",
"alias": "science",
"dataverseContacts": [
{
"contactEmail": "p...@example.edu"
},
{
"contactEmail": "stu...@example.edu"
}
],
"affiliation": "Scientific Research University",
"description": "We do all the science.",
"dataverseType": "LABORATORY"
}
this is my url API dataverser : https://dev-rin1.lipi.go.id/api/dataverses/
Please help me. Thankfull
--
You received this message because you are subscribed to the Google Groups "Dataverse Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-de...@googlegroups.com.
To post to this group, send email to datave...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-dev/c56377a7-53b9-4f81-84b6-828e464fb4b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-dev/CABbxx8G2KxW7YJXK%3DOJ07GNj6UChQ-Tb8_AwWhqnEpEgvJfXHQ%40mail.gmail.com.
I haven’t used Python with Dataverse, but it looks to me like you are not sending the json file correctly. I think you could send the json directly, or search on the web for correct examples of how to load a file for a python post request.
The following might work:
data={
"name": "Scientific Research",
"alias": "science",
"dataverseContacts": [
{
"contactEmail": "p...@example.edu"
},
{
"contactEmail": "stu...@example.edu"
}
],
"affiliation": "Scientific Research University",
"description": "We do all the science.",
"dataverseType": "LABORATORY"
}
and
request.post(‘https://demo.dataverse.org/api/dataverses/root’, json=data, headers=headers )
Good luck,
-- Jim
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-dev/CALe88D5QAmPwK24f1SRdcGvsX474iosDKhKU3Mns4%3D2-eaoK%3DQ%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-dev+unsubscribe@googlegroups.com.
To post to this group, send email to datave...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-dev/c56377a7-53b9-4f81-84b6-828e464fb4b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Philip Durbin
Software Developer for http://dataverse.org
http://www.iq.harvard.edu/people/philip-durbin
--
You received this message because you are subscribed to the Google Groups "Dataverse Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-dev+unsubscribe@googlegroups.com.
To post to this group, send email to datave...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-dev/CABbxx8G2KxW7YJXK%3DOJ07GNj6UChQ-Tb8_AwWhqnEpEgvJfXHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Dataverse Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-dev+unsubscribe@googlegroups.com.