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

received an empty error message for put #186

Open
kurzum opened this issue Dec 13, 2024 · 2 comments
Open

received an empty error message for put #186

kurzum opened this issue Dec 13, 2024 · 2 comments

Comments

@kurzum
Copy link
Member

kurzum commented Dec 13, 2024

{
  "logLevel": "error",
  "log": []
}

caused by:

curl -X 'PUT' \
  'https://databus.dbpedia.org/kurzum/dump-proto/dnb/2024-12-13' \
  -H 'accept: application/json' \
  -H 'X-API-KEY: XXXXXX' \
  -H 'Content-Type: application/ld+json' \
  -d '{
   "@context": "https://databus.dbpedia.org/res/context.jsonld",
   "@graph": [
      {
         "@id": "https://databus.dbpedia.org/kurzum/dump-proto/dnb/2024-12-13",
         "@type": [
            "Version",
            "http://dataid.dbpedia.org/ns/core#Dataset"
         ],
         "abstract": "This is a test artifact for a DNB dump.",
         "description": "This artifact contains a dummy description for testing the upload process with a DNB dump.",
         "hasVersion": "2024-12-13",
         "issued": "2024-12-13T00:00:00Z",
         "license": "http://purl.oclc.org/NET/rdflicense/cc-by3.0",
         "publisher": "https://databus.dbpedia.org/kurzum#this",
         "title": "DNB Test Dump",
         "distribution": "https://databus.dbpedia.org/kurzum/dump-proto/dnb/2024-12-13#dnb.nt.gz",
         "account": "https://databus.dbpedia.org/kurzum",
         "artifact": "https://databus.dbpedia.org/kurzum/dump-proto/dnb",
         "group": "https://databus.dbpedia.org/kurzum/dump-proto"
      },
      {
         "@id": "https://databus.dbpedia.org/kurzum/dump-proto/dnb",
         "@type": "Artifact",
         "account": "https://databus.dbpedia.org/kurzum",
         "group": "https://databus.dbpedia.org/kurzum/dump-proto"
      },
      {
         "@id": "https://databus.dbpedia.org/kurzum/dump-proto/dnb/2024-12-13#dnb.nt.gz",
         "@type": "Part",
         "hasVersion": "2024-12-13",
         "issued": "2024-12-13T00:00:00Z",
         "dcat:byteSize": 23667686,
         "downloadURL": "https://data.dev.dbpedia.link/databus.dbpedia.org/kurzum/dump-proto/dnb/2024-12-13/dnb_all.nt.bz2",
         "compression": "gzip",
         "formatExtension": "nt",
         "sha256sum": "b389e64da4b91c8afb448000c809096f3b24a6da3d40f53cc9ffd67dd94c12c6"
      }
   ]
}
'

same for:

curl -X 'PUT' \
  'https://databus.dbpedia.org/kurzum/dump-proto/dnb/2024-12-13' \
  -H 'accept: application/json' \
  -H 'X-API-KEY: XXXX' \
  -H 'Content-Type: application/ld+json' \
  -d '{
  "@context": "https://downloads.dbpedia.org/databus/context.jsonld",
  "@graph": {
    "@type": [
      "Version",
      "Dataset"
    ],
    "@id": "https://databus.dbpedia.org/kurzum/dump-proto/dnb/2024-12-13",
    "hasVersion": "2024-12-13",
    "title": "DNB Test Dump",
    "description": "This artifact contains a dummy description for testing the upload process with a DNB dump.",
    "license": "http://creativecommons.org/licenses/by/4.0/",
    "distribution": [
      {
        "@type": "Part",
        "formatExtension": "nt",
        "compression": "gzip",
        "downloadURL": "https://data.dev.dbpedia.link/databus.dbpedia.org/kurzum/dump-proto/dnb/2024-12-13/dnb.nt.bz2",
        "byteSize": 23667686,
        "sha256sum": "b389e64da4b91c8afb448000c809096f3b24a6da3d40f53cc9ffd67dd94c12c6"
      }
    ]
  }
}
'
@manonthegithub
Copy link
Collaborator

@kurzum I am not sure you are getting error, it seems all worked well.. it is just logLevel is error :).

what the response code there? I suppose 200...

@kurzum
Copy link
Member Author

kurzum commented Dec 13, 2024

Yeah, I was confused. Jan was asked by other people the same thing. He will try to clarify.

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

No branches or pull requests

2 participants