-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Question: convert jquery generic ajax to fetch syntax #307
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
Comments
I've installed fetch via vagrant@vagrant-ubuntu-trusty-64:/vagrant/src/js$ npm list -g | grep fetch
└── [email protected] |
Keep in mind that |
I resolved my issue via jeff1evesque/machine-learning#2401. Thank you! |
I was wondering if I could get some input. I am trying to convert the following jquery ajax script:
to the following fetch equivalent :
The latter script doesn't work yet, since the
catch
block properly executes, and displays corresponding error messages within the browserconsole.log
:This could happening since my backend endpoint, hasn't been adjusted? But, if I know my fetch syntax is correct, I can proceed debugging by creating a trivial backend endpoint, to accommodate the converted fetch script.
The text was updated successfully, but these errors were encountered: