Comments (4)
ugh. i don't know at the moment. i will investigate
from reqwest.
Unless I'm missing something, I don't think any of the jsonp/promises-combo examples from the docs work. Certainly the fail
wont, as reqwest doesn't know if a script failed to load.
from reqwest.
@ironsidevsquincy FYI: some browsers will fire the onload
on a script even in a 404 or 500 scenario, and others will fire onerror
. Also, if the JSON comes back malformed, you can detect that the load event happened, but the expected callback failed, and know of that failure (I use that technique in jXHR). But you're right that fail()
will not be totally reliable cross-browser in the various error conditions.
from reqwest.
Good point @getify, it is possible, just not with reqwest as is. Just threw me a bit seeing promise examples using jsonp
. Might be worth updating the docs @ded to just show it working with standard json
.
from reqwest.
Related Issues (20)
- Setting contentType to application/json leads to session cookie not being sent HOT 1
- Setting content-type to 'application/json' on POST seems to be broken HOT 2
- context undefined when using webpack HOT 8
- reqwest 404 Request Method:OPTIONS
- Uncaught TypeError: Cannot read property 'responseText' of undefined
- if ajax return empty string ,the success function first param type will become "XMLHttpRequest" HOT 1
- How to abort a request? HOT 1
- Unable to send multipart/form-data request HOT 2
- Incorrect handling of response data
- reqwest promise with Nock HOT 1
- in IOS/Android webview, CORS, reqwest run error
- cache
- when I use reqwest post file,there is error: nested exception is java.lang.NullPointerException
- No err was throwed when network disconnected
- Ability to disable TLS at compile time? HOT 1
- CORS error when trying to get google geocoding HOT 4
- not support more than 16 integer data in response data
- how can i get response head HOT 3
- Type settings jsonp, jsonpCallback and jsonpCallbackName are not added, there will be default callback? HOT 1
- greenhouse 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 reqwest.