Closed HueyNemud closed 3 years ago
Hi @HueyNemud,
I think our good friend @Joxit has already proposed a fix for this over in https://github.com/pelias/api/pull/1513. Can you test it out and confirm it fixes everything?
Thanks!
Hi there, if you are using docker, you can pick this tag : pelias/api:joxit-fix-normalizeParentIds
Hi,
Since 5f4bf2e392c99aaaa7afc41b0a116b6cc11b6eb3, documents with no parent sources raise an exception
TypeError: Cannot read property 'toLowerCase' of null
during a forward geocoding query. See the full stacktrace below.This is apparently due to
_.get(place, ``${placeType}_source``, ['whosonfirst'])
inmiddleware/normalizeParentIds.js
. If a place has no source,place.${placeType}_source
is not undefined but contains[null]
therefore the default value['whosonfirst']
is never returned.