Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-5470

FIWARE.Request.Tech.Data.CKAN.Error creating a new resource in a dataset created by me in https://data.lab.fiware.org.

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Jaime Loureiro sent a message using the contact form at
      http://catalogue.fiware.org/.

      Hi, I have a problem with the CKAN API when I try creating a new resource in
      my public domain dataset located on https://data.lab.fiware.org.

      My request in python is:

      import requests
      import json
      r=requests.post('https://data.lab.fiware.org/api/action/resource_create',
      data=

      {"package_id":"medical-records"}

      ,
      headers=

      {"X-CKAN-API-Key": "515f8152-53ae-4e24-97fe-1f15875e9130"}

      ,
      files=[('upload', file('/home/jaime/prueba.txt'))])

      print r.text
      print r.status_code

      and I get the next error:

      {"help":
      "https://data.lab.fiware.org/api/3/action/help_show?name=resource_create",
      "success": false, "error": {"url": ["Missing value"], "__type": "Validation
      Error"}}
      409

      It run fine the last week but suddenly it stopped working and I get before
      erorr. My company is in a phase 4 of the FIWARE-FINODEX accelerator program
      and it is very important that my application run fine ASAP. Thanks for your
      attention.

      BR

      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-tech-help

      [Created via e-mail received from: jaime@infinbox.com]

        Activity

        Hide
        fw.ext.user FW External User added a comment -

        Just try by adding the field "url" to your data. It can be empty as CKAN
        will complete it for you:

        p=requests.post('https://data.lab.fiware.org/api/action/resource_create',
        data=

        {"package_id":"medical-records", "url":""}

        ,
        headers=

        {"X-CKAN-API-Key": "YOUR_KEY"}

        ,
        files=[('upload', file('/home/jaime/prueba.txt'))])

        Do not forget to restart your API Key as this list is public and anyone
        will be able to perform any operation in CKAN on your behalf!

        BR
        Aitor

        Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
        Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one.
        _______________________________________________
        Fiware-tech-help mailing list
        Fiware-tech-help@lists.fiware.org
        https://lists.fiware.org/listinfo/fiware-tech-help

        Show
        fw.ext.user FW External User added a comment - Just try by adding the field "url" to your data. It can be empty as CKAN will complete it for you: p=requests.post('https://data.lab.fiware.org/api/action/resource_create', data= {"package_id":"medical-records", "url":""} , headers= {"X-CKAN-API-Key": "YOUR_KEY"} , files= [('upload', file('/home/jaime/prueba.txt'))] ) Do not forget to restart your API Key as this list is public and anyone will be able to perform any operation in CKAN on your behalf! BR Aitor Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost. Please, send your messages using the new domain (Fiware-tech-help@lists.fiware.org) instead of the old one. _______________________________________________ Fiware-tech-help mailing list Fiware-tech-help@lists.fiware.org https://lists.fiware.org/listinfo/fiware-tech-help
        Hide
        ckan-fiware-okfn OKFN CKAN team added a comment -

        FIWARE team confirm that we agree with Aitor's response.

        Jo

        Show
        ckan-fiware-okfn OKFN CKAN team added a comment - FIWARE team confirm that we agree with Aitor's response. Jo

          People

          • Assignee:
            ckan-fiware-okfn OKFN CKAN team
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: