Title: Update of metadata fails when dataset contains files · Issue #48 · IQSS/dataverse-client-python · GitHub
Open Graph Title: Update of metadata fails when dataset contains files · Issue #48 · IQSS/dataverse-client-python
X Title: Update of metadata fails when dataset contains files · Issue #48 · IQSS/dataverse-client-python
Description: I am trying to update the metadata of a dataset. It works fins as long as the dataset does not contain any files. When the dataset contains files, I receive: In [34]: dataset.update_metadata(metadata) ------------------------------------...
Open Graph Description: I am trying to update the metadata of a dataset. It works fins as long as the dataset does not contain any files. When the dataset contains files, I receive: In [34]: dataset.update_metadata(metada...
X Description: I am trying to update the metadata of a dataset. It works fins as long as the dataset does not contain any files. When the dataset contains files, I receive: In [34]: dataset.update_metadata(metada...
Opengraph URL: https://github.com/IQSS/dataverse-client-python/issues/48
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update of metadata fails when dataset contains files","articleBody":"I am trying to update the metadata of a dataset. It works fins as long as the dataset does not contain any files. When the dataset contains files, I receive:\r\n\r\n```\r\nIn [34]: dataset.update_metadata(metadata)\r\n---------------------------------------------------------------------------\r\nOperationFailedError Traceback (most recent call last)\r\n\u003cipython-input-34-035088be5019\u003e in \u003cmodule\u003e()\r\n----\u003e 1 dataset.update_metadata(metadata)\r\n\r\n/home/admincentos/src/dataverse/dataverse/dataset.pyc in update_metadata(self, metadata)\r\n 236\r\n 237 if resp.status_code != 200:\r\n--\u003e 238 raise OperationFailedError('JSON metadata could not be updated.')\r\n 239\r\n 240 updated_metadata = resp.json()['data']\r\n\r\nOperationFailedError: JSON metadata could not be updated.\r\n```\r\nThe http request fails with error code 500:\r\n\r\n```\r\nresp = requests.put(\r\n url,\r\n headers={'Content-type': 'application/json'},\r\n data=json.dumps(md),\r\n params={'key': dataset.connection.token}\r\n)\r\n\r\nprint resp.status_code, resp.reason\r\n500 Internal Server Error\r\n```\r\n","author":{"url":"https://github.com/chStaiger","@type":"Person","name":"chStaiger"},"datePublished":"2018-04-25T15:45:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/48/dataverse-client-python/issues/48"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1bed6fcb-707e-f63a-b343-4e16c2d5f332 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A152:268196:77148F:973300:69922E06 |
| html-safe-nonce | 0e0a0d70479e3376728f2a2bbed72c27e02c8f702783cfe60baebe2641ef468f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTUyOjI2ODE5Njo3NzE0OEY6OTczMzAwOjY5OTIyRTA2IiwidmlzaXRvcl9pZCI6IjYzNzc1NDY5MzMyOTczNjAzOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 52bba89e4371a029e1adc6ac4444757cbd99a796574cdf2943aadf3573548b92 |
| hovercard-subject-tag | issue:317686626 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IQSS/dataverse-client-python/48/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b331839a8d789105ae7ed729bdc4485fce6b8bb152aaebb58706317ef4fff2bd/IQSS/dataverse-client-python/issues/48 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b331839a8d789105ae7ed729bdc4485fce6b8bb152aaebb58706317ef4fff2bd/IQSS/dataverse-client-python/issues/48 |
| og:image:alt | I am trying to update the metadata of a dataset. It works fins as long as the dataset does not contain any files. When the dataset contains files, I receive: In [34]: dataset.update_metadata(metada... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chStaiger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/IQSS/dataverse-client-python git https://github.com/IQSS/dataverse-client-python.git |
| octolytics-dimension-user_id | 675237 |
| octolytics-dimension-user_login | IQSS |
| octolytics-dimension-repository_id | 12977830 |
| octolytics-dimension-repository_nwo | IQSS/dataverse-client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 12977830 |
| octolytics-dimension-repository_network_root_nwo | IQSS/dataverse-client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width