Skip to content

Instantly share code, notes, and snippets.

@starenka
Created April 2, 2012 06:54
Show Gist options
  • Save starenka/2281306 to your computer and use it in GitHub Desktop.
Save starenka/2281306 to your computer and use it in GitHub Desktop.
Uncaught exception: SyntaxError: JSON.parse: Colon expected: recentl
Error thrown at line 30, column 62976 in <anonymous function>(a) in https://twimg0-a.akamaihd.net/c/phoenix/en/bundle/t1-core.a65a5e07efea1d7bcdd8b5a1f5166b3b.js:
twttr.cache.Simple.call(this),this._namespace=a,this._cache=JSON.parse(v(a)||"{}"),twttr.cache.LocalProvider._caches.push(this)
called via Function.prototype.apply() from line 20, column 122264 in <anonymous function: klass>() in https://twimg0-a.akamaihd.net/c/phoenix/en/bundle/t1-core.a65a5e07efea1d7bcdd8b5a1f5166b3b.js:
c.apply(this,arguments),twttr.each(d,function(a){new a(f,b)})
called from line 30, column 63886 in <anonymous function>(a) in https://twimg0-a.akamaihd.net/c/phoenix/en/bundle/t1-core.a65a5e07efea1d7bcdd8b5a1f5166b3b.js:
this.name=a,this.cache=new twttr.cache.LocalProvider(":USER:"),this.user=this.cache.get(a)||this.cache.set(a,{login:(new Date).getTime(),store:{}}),this.clean()
called via Function.prototype.apply() from line 20, column 122264 in <anonymous function: klass>() in https://twimg0-a.akamaihd.net/c/phoenix/en/bundle/t1-core.a65a5e07efea1d7bcdd8b5a1f5166b3b.js:
c.apply(this,arguments),twttr.each(d,function(a){new a(f,b)})
called from line 40, column 37237 in <anonymous function: twttr.setup>(a) in https://twimg0-a.akamaihd.net/c/phoenix/en/bundle/t1-core.a65a5e07efea1d7bcdd8b5a1f5166b3b.js:
$("body").addClass(c()),twttr.hoversInCss||$(".js-hover").live("mouseenter mouseleave",function(a){$(this).toggleClass("hover",a.type=="mouseenter")}),twttr.currentUser?twttr.caches.User=new twttr.cache.local.User(twttr.currentUser.screenName):twttr.caches.User=new twttr.cache.local.User($.cookie("guest_id")),twttr.app.init(a),twttr.$win=$(window),twttr.$doc=$(document),twttr.provide("twttr.$elements",{page:$("#page-outer")}),twttr.windowHeight=twttr.$win.height(),twttr["interface"].setup(),twttr.ui.loadBar(),twttr.search.setup(),twttr.API.globalEvents.bind("rate_limited",function(a){twttr.errors.showErrorFromCode(twttr.constants.errorCodes.dailyLimit)}),twttr.API.globalEvents.bind("unknown_error",function(a){twttr.errors.showErrorFromResponse({})}),using(twttr.bundleMore,function(){var a=$("div.welcome-banner-outer");if(a.length>0){var b=twttr.banners.welcomeToPhoenix();b.bind("closed",function(){$.cookie("show_phx_welcome_"+twttr.currentUser.id,)}),a.remove(),b.insert()}var c=$("div.became-user-banner-outer");c.length>0&&(c.remove(),twttr.banners.becameUser().insert());var d=$("div.top-bar-inside,div.banner div.banner-inside");twttr.isT1||twttr.$win.scroll(function(){d.css("left",-twttr.$win.scrollLeft())})}),twttr.router.bind("routed",function(a,b){twttr.$win.scrollTop(0)}),twttr.router.bind("urlChanged",function(a,b){twttr.trackPageView(b.name)}),twttr.router.bind("routeNotFound",function(){twttr.app.switchToPage("404").send("notFound")}),twttr.router.startRouting(),twttr.decider.isInfiniteScroll()&&b.util.lazyBind(window,"scroll",function(a){if(twttr.widget&&twttr.widget.Dialog&&twttr.widget.Dialog.currentModal)return;var b=twttr.app.currentPage();b.send("scrollEnd",[twttr.$win.scrollTop()]),Math.abs(twttr.$doc.scrollTop()+twttr.windowHeight-twttr.$doc.height())<500&&b.send("getStreamManager",function(a){a&&!a.noInfiniteScroll&&a.getMoreOldItems(function(a){_scribble("stream-scrolled",{page:a._page,stream:a._cacheKey,focused_tweet_id:a.focusedItemId||""})})})}),twttr.isT1||b.util.lazyBind(window,"scroll",function(a){twttr.app.currentPage().send("repositionDetailsPane")},100),b.util.lazyBind(window,"resize",function(a){var b=twttr.app.currentPage();twttr.windowHeight=twttr.$win.height(),b&&b.send("resizeDetailsPane"),twttr.windowHeight=twttr.$win.height()}),twttr.isT1&&using("idleDetector",function(a){a({wait:3e5})}),function(){function a(){var a=$(this),b=parseInt(a.attr("data-time"),10);if(d-b>864e5)a.removeClass("_timestamp").addClass("_old-timestamp");else{var c=twttr.helpers.timeAgo(b,JSON.parse(a.attr("data-long-form")||"false"),JSON.parse(a.attr("data-include-sec")||"false"));c!==a.text()&&a.text(c)}}function b(){var e=twttr.app.currentPage(),f=twttr.isT1&&twttr.at("widget.Dialog.currentModal",twttr);d=+(new Date),e&&e.$find('span._timestamp[data-time$="'+c+'000"]').each(a),f&&f.$find('span._timestamp[data-time$="'+c+'000"]').each(a);var g=+(new Date)-d;c++,c%=10,setTimeout(b,2e3)}var c=0,d;setTimeout(b,2e3)}(),using([twttr.bundleMore,"components/Autocomplete"],function(){twttr.API.User.bind("follow acceptFollow",function(a,b){twttr.currentUser.sync("friendsCount",++twttr.currentUser.friendsCount),twttr.components.Autocomplete.getAutocompletedUsers(function(){twttr.components.Autocomplete.addToList([b.id,b.screenName,b.name,b.profileImageUrl])}),$(document).trigger("currentUserUpdated")})}),twttr.API.User.bind("unfollow",function(a,b){twttr.currentUser.sync("friendsCount",Math.max(--twttr.currentUser.friendsCount,0)),$(document).trigger("currentUserUpdated")}),twttr.is.nil($.cookie("js"))&&$.cookie("js",1,{expires:30,path:"/"});
called from line 12, column 13845 in <anonymous function: init>() in https://twitter.com/:
twttr.bootTimings&&twttr.bootTimings.add("setup start"),jQuery.ready(),jQuery.fx.interval=50,twttr.setup(a.renderedOnServer),twttr.bootTimings&&twttr.bootTimings.add("setup finish"),signal(">setupComplete");
called via Function.prototype.apply() from line 2, column 6215 in <anonymous function: A.prototype.complete>() in https://twitter.com/:
if(this.callbacks)
called from line 2, column 10942 in b() in https://twitter.com/:
for(var c=0,d;d=a.deps[c];c++)
called from line 2, column 6271 in <anonymous function: A.prototype.complete>() in https://twitter.com/:
c.apply(a,this.results)
called from line 2, column 12057 in d() in https://twitter.com/:
e?e.then(function(a){e.results.length>0&&(c=c.concat(e.results)),d()}):a.complete.apply(a,c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment