Comments (8)
Oops... I'll look into it
from riak-js.
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.
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.
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.
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.
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.
take your time... we're working on it :)
from riak-js.
unfortunately we're not supporting jquery anymore ... sorry. closing.
from riak-js.
Related Issues (20)
- documentation is oversimplified and not really useful HOT 8
- Can't get pooling to work HOT 7
- How to perform "range with terms" queries on 2i
- Bug running on node 0.10.x HOT 4
- db.save not saving custom headers
- riakjs.com is confusing
- New low-level streaming protobuf Riak client
- Link Two Keys in a bucket - Loosing the values for the keys
- Riak Secondary Indexes
- Saving meta with an arobase in a 2i key throws an error
- Support for counters?
- Support for Riak 2.0 ? HOT 1
- Riak 2i for protobuf
- Riak 2.0? HOT 14
- Fails to install under 0.11 due to dependency failure (wtf8)
- riak-js.org Site temporarily disabled HOT 4
- 1.0.0 dropped support for getClient(), which is still used in docs HOT 1
- Basic connection fails with node v0.10.35 & riak-js 1.0.3 HOT 2
- No method getClient HOT 2
- Cannot call method 'toString' of undefined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riak-js.