when I use 'jsonp',navigator console error 'Uncaught SyntaxError: Unexpected token :'
See original GitHub issueHere is my code
this.$http.jsonp('http://news-at.zhihu.com/api/4/news/latest',{ 'jsonp': 'callback' }).then(function (res) { console.log(res) })
Here is the error tip
Issue Analytics
- State:
- Created 7 years ago
- Comments:9
Top Results From Across the Web
Troubleshoot 'Uncaught SyntaxError: Unexpected token u in ...
An unexpected token simply means that it was expecting data, but instead got a command keyword (but this error can be triggered by...
Read more >Uncaught SyntaxError: Invalid or unexpected token in javascript
I am trying to implement web share api of android chrome in jekyll posts page. Below is my code. my code is in...
Read more >Uncaught SyntaxError: Invalid or unexpected token (at main ...
I have the same problem hosting it behind Cloudflare. Trying clearing the cache and it should work again.
Read more ><!doctype is not valid json | The AI Search Engine You Control
I always get this error in the navigator : Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "… is not valid JSON. And...
Read more >How to Fix SyntaxError: Unexpected token < in JSON at ...
To fix this error you need to figure out why you're getting HTML (or something else) instead of the JSON you expected. To...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why is this issue closed while there are still people encountering the problem? I’m having the same error as well…
@StKostya don’t use this plugin 😃 it’s abandoned by its owner. it’s much easier to use either window.fetch or Axios. https://alligator.io/vuejs/rest-api-axios/ https://github.com/github/fetch