Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Object.values(...).flat is not a function #1661

Open
bdmapman opened this issue Aug 29, 2023 · 0 comments
Open

TypeError: Object.values(...).flat is not a function #1661

bdmapman opened this issue Aug 29, 2023 · 0 comments
Labels

Comments

@bdmapman
Copy link

bdmapman commented Aug 29, 2023

Hello, I have built the Pelias locally. After that I populated data using, Geonames, Placeholder, Whosonfirst, Openstreetmaps and CSV. Whenever I am calling forward or reverse geocoding with a paramater sources or layers it is returning the following error

TypeError: Object.values(...).flat is not a function
    at allTargets (/opt/tools/pelias/api/sanitizer/_targets.js:18:47)
    at Object._sanitize [as sanitize] (/opt/tools/pelias/api/sanitizer/_targets.js:72:27)
    at sanitize (/opt/tools/pelias/api/sanitizer/sanitizeAll.js:40:32)
    at Object.runAllChecks (/opt/tools/pelias/api/sanitizer/sanitizeAll.js:95:3)
    at /opt/tools/pelias/api/sanitizer/reverse.js:45:17
    at Layer.handle [as handle_request] (/opt/tools/pelias/api/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/opt/tools/pelias/api/node_modules/express/lib/router/index.js:328:13)
    at /opt/tools/pelias/api/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/opt/tools/pelias/api/node_modules/express/lib/router/index.js:346:12)
    at next (/opt/tools/pelias/api/node_modules/express/lib/router/index.js:280:10)

Is it a bug or I am missing something?

@bdmapman bdmapman added the bug label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant