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

        fw.ext.user FW External User created issue -
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        mev Manuel Escriche made changes -
        Assignee OKFN CKAN team [ ckan-fiware-okfn ]
        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
        ckan-fiware-okfn OKFN CKAN team made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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
        ckan-fiware-okfn OKFN CKAN team made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        ckan-fiware-okfn OKFN CKAN team made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        mev Manuel Escriche made changes -
        Summary [Fiware-tech-help] [CKAN] Error creating a new resource in a dataset created by me in https://data.lab.fiware.org. FIWARE.Request.Tech.Error creating a new resource in a dataset created by me in https://data.lab.fiware.org.
        mev Manuel Escriche made changes -
        Summary FIWARE.Request.Tech.Error creating a new resource in a dataset created by me in https://data.lab.fiware.org. FIWARE.Request.Tech.Data.CKAN.Error creating a new resource in a dataset created by me in https://data.lab.fiware.org.
        mev Manuel Escriche made changes -
        Sender Email jaime@infinbox.com
        mev Manuel Escriche made changes -
        HD-Enabler CKAN [ 10870 ]
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2d 16h 29m 1 OKFN CKAN team 07/Dec/15 10:16 AM
        In Progress In Progress Answered Answered
        1h 36m 1 OKFN CKAN team 07/Dec/15 11:52 AM
        Answered Answered Closed Closed
        2d 30m 1 OKFN CKAN team 09/Dec/15 12:23 PM

          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: