Ask Your Question
4

sharing questions - tiny url problem

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

alexandros.z gravatar image alexandros.z
610 13 10 30

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?

delete close flag offensive retag edit

Comments

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

alexandros.z ( 2012-05-17 19:00:39 -0500 )edit

It seems that there is a quota problem

alexandros.z ( 2012-05-17 19:04:17 -0500 )edit

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

Evgeny ( 2012-05-17 19:33:10 -0500 )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 ( 2012-05-18 03:47:20 -0500 )edit

Be the first one to answer this question!

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 61 times

Last updated: May 17 '12