Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2123

Seed List REST API returns Text but headers indicate/require JSON

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.11
    • 1.11
    • REST_api

    Description

      nutch.py: POST Endpoint: /seed/create
      nutch.py: POST Request data: {'seedUrls': [

      {'id': 0, 'url': 'http://aron.ahmadia.net', 'seedList': None}

      ], 'id': '12345', 'name': 'aron'}
      nutch.py: POST Request headers:

      {'Accept': 'application/json'}

      nutch.py: Response headers:

      {'content-type': 'application/json', 'server': 'Jetty(8.1.15.v20140411)', 'content-length': '64', 'date': 'Fri, 25 Sep 2015 05:49:09 GMT'}

      nutch.py: Response status: 200

      resp.headers

      {'content-type': 'application/json', 'server': 'Jetty(8.1.15.v20140411)', 'content-length': '64', 'date': 'Fri, 25 Sep 2015 05:49:09 GMT'}

      resp.text
      '/var/folders/3s/pw2prx7n7vd22qqrlssmtn900000gp/T/1443160149187-0'

      Attachments

        1. NUTCH-2123.patch
          2 kB
          Sujen Shah

        Activity

          People

            chrismattmann Chris A. Mattmann
            ahmadia Aron Ahmadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: