Coder Social home page Coder Social logo

Comments (4)

fergiemcdowall avatar fergiemcdowall commented on June 14, 2024

You mean to get the data into JSON? Or to change the structure of existing JSON? Or something else?

Could you be more specific?

from norch.

wayearn avatar wayearn commented on June 14, 2024

No, I have a JSON data need to format when use your /add api, like a Middleware:

norch().then({here's format data Middleware}).call('add',function(){})

I build a simple app use request, but I got proxy error:

    request.post({
      url: "http://localhost:3030/add",
      method: "POST",
      // json: true,   
      body: JSON.stringify(data),
      headers:{
        'Content-Type': 'application/json'
      }
    },function (error, response, body) {
      console.log('error:', error); // Print the error if one occurred
      console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
      console.log('body:', body); // Print the HTML for the Google homepage.
    });

My app runs at localhost:3000, and norch runs at localhost:3030, got proxy error. But, when I use another host not localhost, like 127.0.0.2 to run norch, and my app runs at 127.0.0.1, my app works.

from norch.

fergiemcdowall avatar fergiemcdowall commented on June 14, 2024

Hmmm- that sounds like you are experiencing network problems, but Norch is working?

from norch.

wayearn avatar wayearn commented on June 14, 2024

Norch is working!

from norch.

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.