Avnish1985 / bitly-api

Automatically exported from code.google.com/p/bitly-api
0 stars 0 forks source link

Handling errors from /v3/shorten via jsonp #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem (provide an exact http api call where
appropriate)?
1. Open http://jsfiddle.net/uuemfe07/ in Chrome
2. Go to console
3. Refused to execute script from 
'https://api-ssl.bitly.com/v3/shorten?access_token=33f2856954789c98c99ab7e83…1
2949298228406692291092111708147060521878302_1412681881438&_=1412681881439' 
because its MIME type ('application/json') is not executable, and strict MIME 
type checking is enabled.

What is the expected output? What do you see instead?
Expected response:
jQuery212949298228406692291092111708147060521878302_1412681881438({ "data": [ 
], "status_code": 500, "status_txt": "ALREADY_A_BITLY_LINK" })

Actual response:
/**/jQuery212949298228406692291092111708147060521878302_1412681881438({ "data": 
[ ], "status_code": 500, "status_txt": "ALREADY_A_BITLY_LINK" })

What version of the product are you using? On what operating system?
OS X, Chrome. But reproduced also in Windows

I am asking because in real example i can only use jsonp via plain js and i 
don't have jQuery/etc.

Original issue reported on code.google.com by zmit...@gmail.com on 7 Oct 2014 at 11:50