ShareThis Forums » Developers

Request-URI Too Large

(17 posts)

  1. marydev
    Member

    Started getting this error on Mac Browsers. I see the http://w.sharethis.com/widget/?tabs=web%2Cpost%2Cemail&charset=utf-8&style=default&publisher=520384d4-092d-4b3e-a977-bffd38ff4944&embeds=true doc was updated 11/4/08. Is there a bug or a workaround to fix this issue. We are going live the end of next week? It was working fine until 11//5/08???
    marydev

    Posted 2 months ago #
  2. Hi Mary,

    We're unable to replicate this issue. Which browsers are you using that you see this?

    Posted 2 months ago #
  3. I'm getting the same thing on Mac FFox, Camino, Safari. this is the error message

    Request-URI Too Large

    The requested URL's length exceeds the capacity limit for this server.

    here

    http://beta.craftynation.com/articles/19

    Posted 2 months ago #
  4. marydev
    Member

    Yes Mac OSX Version 10.4.11, Firefox 2 and Safari 3.1.2.

    I'm using AS3
    In my flash

    ExternalInterface.call ("ShareThis_set", "title", "test");
    ExternalInterface.call ("ShareThis_set", "url", "http://www.test.com");
    //ExternalInterface.call("ShareThis_set", "icon", "http://mysite.com/images/mythumb.jpg");
    ExternalInterface.call ("ShareThis_set", "summary", "test");
    //ExternalInterface.call("ShareThis_set", "content", "<span>My content</span>")
    var browser:String = ExternalInterface.call("checkBrowser");

    if (browser.indexOf("Safari") > 1)
    {
    var urlRequest:URLRequest = new URLRequest();
    urlRequest.url = "http://w.sharethis.com/widget/safari";
    urlRequest.method = URLRequestMethod.POST;

    navigateToURL (urlRequest, "stframe");
    }

    ExternalInterface.call ("ShareThis_share");

    and this is in my html

    <!-- this script must always be called before the ShareObj functions below or you will get undefined errors -->
    <script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web%2Cpost%2Cemail&charset=utf-8&style=default&publisher=520384d4-092d-4b3e-a977-bffd38ff4944&embeds=true"></script>

    <script language="JavaScript" type="text/javascript">//<![CDATA[

    /*
    * The click event does not get passed to the container in Safari
    * so our popup gets blocked. There is a workaraound in the flex
    * script but we need to know if this is Safari.

    */

    function checkBrowser() { var value = navigator.userAgent; return value; }

    /*
    * Create a sharelet that does not display a button,
    * and will generate a popup on share.
    */

    var ShareObj = SHARETHIS.addEntry({}, {button:false, popup:true});

    /*
    * Functions called from mx:Script to update elements
    * in the sharelet.
    */

    function ShareThis_set(el, val){
    ShareObj.properties[el] = val;
    }

    /*
    * The share event executed from mx:Script.
    */

    function ShareThis_share(){
    var browser = checkBrowser();
    if (browser.indexOf("Safari") > 1) {

    /*
    * Safari will take a moment to launch the new window.
    */

    setTimeout(ShareObj.popup, 500);
    } else {
    ShareObj.popup();
    }
    }

    //]]></script>

    it was working until Wednesday.

    THanks for looking

    Posted 2 months ago #
  5. marydev
    Member

    it's also giving me that error now on Windows XP IE 7 and FIrefox 2

    Posted 2 months ago #
  6. I am also see this same problem, using these browsers:

    Firefox 3, Safari 3.1.2, Chrome 0.3.154.9, Opera 9.61 (all on windows)

    However, IE7 is working and not giving me the 414 error (Request-URI Too Large).

    Are there any updates on this problem?

    -Lockley

    Posted 2 months ago #
  7. Also have the problem, and I know the cause, but not the solution:

    FireFox 3: "Request-URI Too Large", "The requested URL's length exceeds the capacity limit for this server."

    The problem seems to be with the URL parameter "opts_each", which contains a loooong url-encoded string of javascript code.

    Overall it creates a URL that contains 23,761 characters, which your server at sharethis.com is rejecting.

    Internet Explorer 7:

    Just outright crashes, because IE7 only accepts urls with fewer than 2084 characters. See: http://support.microsoft.com/kb/208427

    I confirmed that the long URL visible in FF3 is truncated in IE7.

    You can see the error occurring here:

    http://www.besthomepro.com/c/

    Posted 2 months ago #
  8. Thank you guys for pointing this problem out. I also appreciate all the time that you guys took to debug the issue. The debug info was very useful for isolating the issue.

    It seems that this problem is limited to the ShareThis Popup implementation, we are working on a fix that will solve this issue.

    Thank you for using ShareThis.

    -Manu

    Posted 1 month ago #
  9. malsmith
    Member

    I have the same problem - I strongly suspect that is is related to using the prototype.js library (which automatically extends the properties on the button objects) such that the sharethis code tries to encode them all.

    I have to use prototype.js in my code so if there a solution soon it would be great. Otherwise I have to choose between prototype.js and sharethis.

    you can reproduce the problem on www.thedailylowdown.com - click on any article then click the share button.

    -Malcolm

    Posted 1 month ago #
  10. jmlecool
    Member

    Same problem here. I am also using Prototype ...

    sharethis does not play well with Prototype ...

    Posted 1 month ago #
  11. Confirming use of Prototype151.js as well

    Posted 1 month ago #
  12. I assure, you we do know the cause of this issue as well as the solution. Our dev team is currently in the development cycles of this fix and it will be implemented soon.

    I apologize for the inconvenience. Thanks for your patience.

    Posted 1 month ago #
  13. marydev
    Member

    The site with this ShareThis element on it is now live.
    http://navyathletes.com/
    It's working on the PC, but Mac Safari and Firefox are still creating the error. How long before this will be fixed on the Mac side? Or do you offer a workaround?

    Thanks
    Marydev

    Posted 1 month ago #
  14. Thank you all for being patient.

    All you would have to do is change your script src

    Currently it should look something like http://w.sharethis.com/widget/?tabs=...
    Please change it to http://w.sharethis.com/button/sharethis.js#tabs=...

    This should fix the popup problem.

    This is a newer version of the code so if you see problems with it please let me know manu(at)sharethis.com

    thanks,
    Manu

    Posted 1 month ago #
  15. krishnakdesigntv
    Member

    RE: All you would have to do is change your script src

    Currently it should look something like http://w.sharethis.com/widget/?tabs=...
    Please change it to http://w.sharethis.com/button/sharethis.js#tabs=...

    I changed the following code:
    <script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=web%2Cpost%2Cemail&charset=utf-8&style=default&publisher=1818a03b-0e32-4266-bc67-ff7a4215d632&popup=true"></script>

    to:

    <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#tabs=web%2Cpost%2Cemail&charset=utf-8&style=default&publisher=1818a03b-0e32-4266-bc67-ff7a4215d632&popup=true"></script>

    result:

    The shareThis window is no longer implemented as a popUp window and interferes with a Flash element on the page.

    question:

    Can I have the shareThis window as a popUp and still avoid the url-too-large issue?

    Posted 1 month ago #
  16. helo
    Member

    Thank you for looking in to this- this issue is currently a showstopper for an implementation we're working on- we really need the sharethis window to launch as a popup in order to integrate it. Has anyone done a prototype+popup integration?

    Thank you!

    Posted 1 month ago #
  17. krishnakdesign,

    Are you using the addEntry code? Can you try putting the script tag in the <head> and use the addEntry code?

    Also is there a url?

    -Manu

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.