Export to GitHub

bitly-api - issue #64

Handling errors from /v3/shorten via jsonp


Posted on Oct 7, 2014 by Swift Panda

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…12949298228406692291092111708147060521878302_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.

Status: New

Labels:
Type-Defect Priority-Medium