Code Monkey home page Code Monkey logo

Comments (5)

restyler avatar restyler commented on July 23, 2024

I hacked curl.controller.js to return real nodejs exception message, and now I see that the exception error is {"code":400,"message":"Unterminated string in JSON at position 234"}

from n8n.

restyler avatar restyler commented on July 23, 2024

@netroy I noticed you’ve been working with n8n cURL service recently and I’d really value your opinion on this. Could you please take a look when you have a moment? Thanks!

Some background: I run a web scraper builder which generates JS / cURL commands to run this web scraper - and cURL is a perfect method to embed complex web scrapers into n8n.

2024-06-15 at 10 36

from n8n.

restyler avatar restyler commented on July 23, 2024

ok after some digging I realised it's not nested quotes, it's = sign. I have updated the issue description accordingly.

2024-06-15 at 11 05

so if I remove equals sign - it is imported correctly.

from n8n.

restyler avatar restyler commented on July 23, 2024

Ok I have isolated the problem - it is indeed a curlconverter@3 issue.
curlconverter@4 (4.10.1) encodes the equal sign properly while v3 trims it poorly and adds single quotes which breaks n8n.

from n8n.

Joffcom avatar Joffcom commented on July 23, 2024

Hey @restyler,

Thanks for the report, As there is a PR for this as well I am going to close this issue and we can continue the conversation on the PR.

from n8n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.