Ask Your Question
4

sharing questions - tiny url problem

asked 2012-05-17 18:55:17 -0600

alexandros.z gravatar image

I am having a problem when I try to share questions (through any of the social networks) because of tinyurl.

When I share a question, the url I am passing as a parameter is undefined

Here is the url: http://www.linkedin.com/shareArticle?mini=true&url=undefined&title=test%20question%201202

This is the ajax call I am doing:

image description

If I try to make the same call in a direct call I am getting this message:

jQuery17208261362977791578_1337297739022({"ok": false, "error": "The API call urlfetch.Fetch() required more quota than is available."})

Does any of you have the same problem? Is it anything broken in the latest sources or I destroyed something? I am running askbot 0.7.42.

Bu the way, if I replace in post.js this line

url = url.replace('{URL}', data.tinyurl);

with this line

url = url.replace('{URL}', URL);

sharing is working! But not with tiny urls.

Any advice?

edit retag flag offensive close merge delete

Comments

It seems that there is a quota problem

alexandros.z gravatar imagealexandros.z ( 2012-05-17 19:04:17 -0600 )edit

Looks like we need a fallback from the shortener service to full urls.

Evgeny gravatar imageEvgeny ( 2012-05-17 19:33:10 -0600 )edit
1

@todofixthis Yes! You are 100% right, my question is indeed related with this post. However, now problem seems to be solved, since server responds with no quota problem. I agree with @Evgeny that a fallback should be added. Something like "if tinyurl is undefined then use the whole url"

alexandros.z gravatar imagealexandros.z ( 2012-05-18 03:47:20 -0600 )edit
1

Hey, I wrote a patch to disable tinyurl and optionally provide one's own short url for questions: https://github.com/ASKBOT/askbot-devel/pull/100

siovene gravatar imagesiovene ( 2012-11-08 06:06:53 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-05-17 19:00:39 -0600

alexandros.z gravatar image

May be this is a hint: JSON (and JSON-P) wrapper around the TinyURL API http://json-tinyurl.appspot.com/?&callback=?</p<>>

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-05-17 18:55:17 -0600

Seen: 34,639 times

Last updated: May 17 '12