First time here? Check out the FAQ!
4

sharing questions - tiny url problem
 

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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
alexandros.z's avatar
596
alexandros.z
asked 12 years ago

Comments

It seems that there is a quota problem

alexandros.z's avatar alexandros.z (12 years ago)

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

Evgeny's avatar Evgeny (12 years ago)
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's avatar alexandros.z (12 years ago)
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's avatar siovene (12 years ago)
see more comments

1 Answer

0

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
alexandros.z's avatar
596
alexandros.z
answered 12 years ago
link

Comments

see more comments