-
Notifications
You must be signed in to change notification settings - Fork 52
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
[WIP] UI Design Stage2 #42
Conversation
Huh, interesting! Can you elaborate - you said you can't pass it, but when you try what happens? Thanks! |
Could a unit test be written against this intended functionality, to show the error? |
Hi, @IshaGupta18 -- thanks! Would you mind trying to push this to your github pages branch, along with your dependencies, so we can try it out? You'll need to make a |
Oh i missed your last comment. Checking now at #45 |
value: function handleFileSelectremote(val) { | ||
var proxyurl = "https://cors-anywhere.herokuapp.com/"; | ||
var url = val; | ||
fetch(proxyurl + url).then(function (response) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, is it on these lines that the error is occurring? Maybe with input from this comment you can output the complete error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return response.text(); | ||
}).then(function (contents) { | ||
return console.log(contents); | ||
})["catch"](function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not completely familiar with this syntax but i think it might be:
})["catch"](function () { | |
})["catch"](function (e) { | |
console.log('error!', e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jywarren I think this should be automatically incorporated once @IshaGupta18 passes the error object below (as I suggested) since the dist is built from that?
simple-data-grapher/src/View.js
Line 127 in 46ff3bd
.catch(() => console.log("Can’t access " + url + " response. Blocked by browser?")) ; |
Okay so this is the correct way of doing the job @namangupta01 thank you for correcting me!
@jywarren kindly have a look at this one!
I have tried to develop a workaround for fetching CSV data from a remote file, without getting the CORS (#35). It works well, however I am not able to pass the fetched data to another function, but I am able to print it at the console.
Also, I am facing the same bug I was facing here #39
@namangupta01 @IgorWilbert @gauravano @Souravirus I would really appreciate if you could help me debug here so that this PR is merged ASAP. Thanks a lot!