sebonlien / bitly-api

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

bug in lookup api on unicode characters #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem (provide an exact http api call where
appropriate)?
1. 
http://api.bit.ly/v3/lookup?url=http://zunguzungu.wordpress.com/2010/11/29/julia
n-assange-and-the-computer-conspiracy-%E2%80%9Cto-destroy-this-invisible-governm
ent%E2%80%9D

What is the expected output? What do you see instead?
I would expect the link to resolve to http://bit.ly/ftdcNl+

What version of the product are you using? On what operating system?

Please provide any additional information below.
The encoded values in the url are \u201c and \u201d , left and right quote 
respectively. 

When passed to the lookup api either on its own or within a multiple url lookup 
the entire response returns:

{"status_code": 500, "data": null, "status_txt": "UNKNOWN_ERROR"}

What I would expect to happen is that the request return 200 with just this url 
returning an error.

My suspicion is that there is a parser in the library you are using to parse 
the urls from within the  query string.

Original issue reported on code.google.com by sicul...@gmail.com on 30 Nov 2010 at 11:07

GoogleCodeExporter commented 8 years ago
That should say:

My suspicion is that there is a parser *error* in the library you are using to 
parse the urls from within the  query string.

Original comment by sicul...@gmail.com on 30 Nov 2010 at 11:09

GoogleCodeExporter commented 8 years ago
thanks for the report. this should be fixed now.

Original comment by jehiah on 30 Nov 2010 at 11:17