okfn / timemapper

Create and share elegant timelines and timemaps fast
http://timemapper.okfnlabs.org/
MIT License
274 stars 60 forks source link

Investigate ES backend errors (suspect encoding issues) #35

Closed rufuspollock closed 11 years ago

rufuspollock commented 12 years ago

Got backend error trying to save the following:

{ title: 'A new note',
  tags: [],
  location: 
   { unparsed: 'Paris',
     geonames: 
      { countryName: 'France',
        adminCode1: 'A8',
        fclName: 'city, village,...',
        countryCode: 'FR',
        lng: 2.3488,
        fcodeName: 'capital of a political entity',
        toponymName: 'Paris',
        fcl: 'P',
        name: 'Paris',
        fcode: 'PPLC',
        geonameId: 2988507,
        lat: 48.85341,
        adminName1: 'Île-de-France',
        population: 2138551 },
     centroid: [ 2.3488, 48.85341 ] },
  start: '2nd December 1900',
  end: null,
  start_parsed: '1900-12-02',
  owner: 'tester',
  _last_modified: '2011-12-28T21:06:18.389Z',
  _created: '2011-12-28T21:06:18.389Z' }

Error was:

Error on upsert: MapperParsingException[Failed to parse]; nested: JsonParseException[Unexpected end-of-input: expected close marker for OBJECT (from [Source: [B@dddf46; line: 1, column: 0])

Worked fine when using London so suspect this is to do with the non-ascii (utf8?) characters in there such as Île-de-France