Coder Social home page Coder Social logo

Comments (8)

frank06 avatar frank06 commented on August 12, 2024

Oops... I'll look into it

from riak-js.

mgan59 avatar mgan59 commented on August 12, 2024

looking into it still to make sure it isn't something on my end. could be the wrong url or something because it looks like my xhr object is empty.

from riak-js.

mgan59 avatar mgan59 commented on August 12, 2024

debugged into it some more. Thought it was strange in my firebug I wasn't seeing any xhr requests being recorded in the 'NET' panel.

I put some consoles into the request obj_literal's callbacks

var request = {
     type: options.method.toUpperCase(),
     url: path,
     data: options.data,
     processData: false,
     contentType: options.headers['content-type'],
     success: function(data, textStatus, xhr) {
         console.log(textStatus);
         callback(data, getMeta(xhr));
     },
     error: function(xhr, message, error) {
          console.log(error);
          callback(message, getMeta(xhr), error);
      }
   };

As a result the error was triggered from the xhr request and the following was dumped into firebug.

[Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "file:///home/user/work/riak-proto/js/jquery-1.4.2.min.js Line: 130"] { constructor=DOMException, more...}

I dumped out the request and the 'url' passed to the xhr and it is just '/mapred/'. So I adjusted my request to include a localhost link with port in the url.

var request = {
     type: options.method.toUpperCase(),
     url: 'http://127.0.0.1:8091'+path,
     data: options.data,
     processData: false,
     contentType: options.headers['content-type'],
     success: function(data, textStatus, xhr) {
         console.log(textStatus);
         callback(data, getMeta(xhr));
     },
     error: function(xhr, message, error) {
          console.log(error);
          callback(message, getMeta(xhr), error);
      }
   };

so now 'success' is registered from the xhr request and I see the post request went out in my net panel. Though Mochiweb/Webmachine returned a 405. Will continue to investigate.

Let me know if you are having any issues or if it is something on my end.

from riak-js.

frank06 avatar frank06 commented on August 12, 2024

I will have to dig into it, I hope tomorrow. Should be easy to fix. I am sorry that the jQuery version is not working properly for you - it lagged a bit behind. (And git master is not a stable/released version).

The '/mapred/' url btw is correct. Map/reduce jobs are submitted via a POST to that resource.

from riak-js.

frank06 avatar frank06 commented on August 12, 2024

Could you get this working? I'm sorry that jQuery hasn't been properly supported; I am now looking into a possiblity to produce a version out of common.js code.

from riak-js.

mgan59 avatar mgan59 commented on August 12, 2024

haven't had a chance to get back to any of my riak work. the project I'm working on with riak is sorta part-time so I mess with it here and there. Hopefully I'll have a chance in the next couple of days to look at it again.

from riak-js.

frank06 avatar frank06 commented on August 12, 2024

take your time... we're working on it :)

from riak-js.

frank06 avatar frank06 commented on August 12, 2024

unfortunately we're not supporting jquery anymore ... sorry. closing.

from riak-js.

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.