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: obj.nodes is not iterable at convert #37

Open
jywarren opened this issue Dec 24, 2019 · 1 comment
Open

TypeError: obj.nodes is not iterable at convert #37

jywarren opened this issue Dec 24, 2019 · 1 comment

Comments

@jywarren
Copy link
Member

I got this error, and I think i'm submitting a request where this is a string and not JSON?

TypeError: obj.nodes is not iterable at convert (/app/src/api/v2/util/converter-multiSequencer.js:13:29) at redirectToProcess (/app/src/api/v2/index.js:32:181) at app.use (/app/src/api/v2/index.js:27:7) at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13) at /app/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12) at next (/app/node_modules/express/lib/router/index.js:275:10) at Function.handle (/app/node_modules/express/lib/router/index.js:174:3) at router (/app/node_modules/express/lib/router/index.js:47:12)
@jywarren
Copy link
Member Author

I'm working from code in publiclab/Leaflet.DistortableImage#485 and i realized, we are sending a string, not JSON -- because https://github.com/publiclab/mapknitter-exporter-sinatra#usage actually wants a string! Here, we want JSON, not stringified. So we're all good but perhaps in the future we may need to catch this and convert stringified JSON to JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant