Closed monderRed closed 12 years ago
same here, thought its just me.
Same issue here. Any idea why this is happening?
The channel server had some troubles downloading from the GitHub API, which caused it to have an incomplete list of package data. When this happens, your machine hits the GitHub API itself. Since there are now over 600 packages, and each package takes at least one API request, it is very easy for a machine to exceed the GitHub API limits. Once you've hit the limits, your are temporarily banned, and receive 403 errors.
I was only attempting to install some packages via ST2 Package Control. So I should wait for some time before trying again?
It appears just tonight GitHub changed their rate limiting to only 60 requests per hour unless you are authenticated. This effectively kills Package Control until I set up the channel server with authentication.
Is there any way to manually reset the package data?
No, but I am doing a first run of caching package data with authenticated requests.
Alright, for tonight this issue should be fixed.
Yep, it certainly seems to be. Thanks for the awesomely quick response!
thanks man! :) nice work!
I still have this problem even after I uninstalled package control. I really like package control, but I dread opening and closing Sublime Text Editor 2. I usually spend 5 minutes closing alerts like "Package Control: Error downloading repository. HTTP error 403 downloading https://api.github.com/repos/xxxxxx"
I am running: Ubuntu 12.04 64-bit Sublime Text Editor 2 Build 2217
@papercheck that means you are making too many requests to the github api - it only allows 60 per hour per IP unless you use basic auth with it.
The real question is, why are you hitting the API so much. Under normal usage, you would only hit it twice per custom GitHub repository you have added to your settings. Can you past your Preferences > Package Settings > Package Control > Settings - User file here so I can see what you have set up?
Thank you for the quick response!
{
"auto_upgrade_last_run": 1352833924,
"repositories":
[
"https://github.com/SublimeText/VBScript.git"
]
}
Can you try installing the testing version (http://wbond.net/sublime_packages/package_control/installation#Testing_Version)?
I just installed the testing version. However, under Preferences I now see two menu items listed as "Package Control." I did remove Package Control.sublime-package from ~/.config/sublime-text-2/Installed\ Packages/, but that does not seem to have updated the menu.
Do you have multiple package control folders inside of your Packages/ folder? (go to Preferences > Browse Packages)
Yes, it looks like there are 75 folders.
I presume they do not all contain package control. Is there one called "Package Control" and another called "sublime_package_control"?
It looks like there are two folders called "Package Control," but none of them are called "sublime_package_control."
Hmm, what is the difference in the names? They can't have the exact same name, so I wonder what it different. Does one have a space at the beginning or end?
It appears that one folder is Package Control, while the other is PackageControl.
Try deleting both and then try installing the testing version from scratch.
I have successfully installed the testing version from scratch, but now when I use CTRL+Shift+P
, I do not have any Package control options.
Try opening Preferences > Settings - User and see if it is listed under ignored_packages
.
The only item under ignored_packages
is: "ignored_packages": ["Vintage"]
Can you paste the contents of your Sublime Text console after a fresh startup?
startup, version: 2217 linux x64 channel: stable
executable: /usr/lib/Sublime-Text-2/sublime_text
working dir: /home/darren
packages path: /home/darren/.config/sublime-text-2/Packages
settings path: /home/darren/.config/sublime-text-2/Settings
PackageSetup not required
Py_GetProgramName(): sublime_text
Py_GetExecPrefix(): .
Py_GetProgramFullPath():
Py_GetPath(): ./lib/python26.zip:./lib/python2.6/:./lib/python2.6/plat-linux2:./lib/python2.6/lib-tk:./lib/python2.6/lib-old:./lib/python2.6/lib-dynload
Py_GetPythonHome(): .
catalogue loaded
found 17 files for base name Default.sublime-keymap
found 3 files for base name Default.sublime-mousemap
found 12 files for base name Main.sublime-menu
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Alignment/Alignment.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/CSS/css_completions.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/CSSLint/asyncprocess.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/CSSLint/csslint.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/CSSLint/statusprocess.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Clipboard History/clipboard.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/comment.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/copy_path.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/delete_word.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/detect_indentation.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/duplicate_line.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/echo.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/exec.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/fold.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/font.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/goto_line.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/indentation.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/kill_ring.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/mark.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/new_templates.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/open_file_settings.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/open_in_browser.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/paragraph.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/save_on_focus_lost.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/scroll.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/set_unsaved_view_name.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/side_bar.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/sort.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/swap_line.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/switch_file.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/transform.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/transpose.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Default/trim_trailing_white_space.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Diff/diff.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/add.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/annotate.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/commit.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/diff.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/flow.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/git.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/history.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/repo.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/stash.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/status.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Git/statusbar.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/HTML/encode_html_entities.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/HTML/html_completions.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/HyperlinkHelper/link_to_wikipedia_page_for_selection.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/HyperlinkHelper/lookup_with_google_and_link.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/HyperlinkHelper/wrap_selection_as_link.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/IndentGuides/indent_guides.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/MoveText/move_text.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Package Control/Package Control.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/RubyTest/run_ruby_test.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/SFTP/SFTP.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/SublimeCodeIntel/SublimeCodeIntel.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/SublimeLinter/SublimeLinter.py
imported capp_lint
imported pep8
imported pyflakes
imported pyflakes.checker
imported pyflakes.messages
SublimeLinter: Puppet loaded
SublimeLinter: XML loaded
SublimeLinter: CSS loaded
SublimeLinter: CoffeeScript loaded
SublimeLinter: Git Commit Message loaded
SublimeLinter: Java loaded
SublimeLinter: JavaScript loaded
SublimeLinter: PHP loaded
SublimeLinter: Objective-J loaded
SublimeLinter: Perl loaded
SublimeLinter: Annotations loaded
SublimeLinter: pylint loaded
SublimeLinter: Ruby loaded
SublimeLinter: HTML loaded
SublimeLinter: Ruby Haml loaded
SublimeLinter: Python loaded
Reloading plugin /home/darren/.config/sublime-text-2/Packages/SublimeWebColors/colorpicker.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/SublimeWebColors/webcolors.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/TagIndent/tag_indent.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/Terminal/Terminal.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/TrailingSpaces/trailing_spaces.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/User/Duplicate.py
Traceback (most recent call last):
File "./sublime_plugin.py", line 62, in reload_plugin
File "./Duplicate.py", line 1, in <module>
import sublime, sublimeplugin
ImportError: No module named sublimeplugin
Reloading plugin /home/darren/.config/sublime-text-2/Packages/WordHighlight/word_highlight.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/copy-file-name/copy_filename.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/sublime-jslint/asyncprocess.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/sublime-jslint/jslint.py
Reloading plugin /home/darren/.config/sublime-text-2/Packages/sublime-jslint/statusprocess.py
plugin init time: 0.576458
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.682442
using gamma: 1 (err: 0)
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "./sublime_plugin.py", line 205, in on_activated
File "./sublime_plugin.py", line 154, in run_timed_function
File "./sublime_plugin.py", line 204, in <lambda>
File "./trailing_spaces.py", line 84, in on_activated
File "./trailing_spaces.py", line 49, in highlight_trailing_spaces
File "./trailing_spaces.py", line 34, in is_find_results
TypeError: argument of type 'NoneType' is not iterable
startup cache, total files: 138 cache hits: 138
startup time: 0.86055 (package setup was not run)
SublimeLinter: ruby enabled (using "ruby" for executable)
SublimeLinter: javascript enabled (using node.js)
loaded 1062 snippets
Package Control: Skipping automatic upgrade, last run at 2012-11-13 17:19:45, next run at 2012-11-13 18:19:45 or after
Based on the last line, it seems Package Control is installed and functioning.
It certainly appears that way, but I cannot actually use Package Control either from the Preferences menu or CTRL+Shift+P
. It has however stopped the alerts: "Package Control: Error downloading repository. HTTP error 403 downloading https://api.github.com/repos/xxxxxx"
I really appreciate your help!
Well, perhaps the Default.sublime-commands
files in Packages/Package Control/
is empty? That is where all of the command palette entries are stored.
I do not see that file or folder this is what appears in ~/.config/sublime-text-2/Packages/Packages\ Control/
:
certs
Package Control.py
Package Control.sublime-settings
readme.creole
lib
Package Control.pyc
*package-metadata.json
You are missing a number of files and a folder. If you download the Package Control.sublime-package
file and rename it to a .zip
file, what do you see inside of it?
This is what I see: certs messages Default.sublime-commands messages.json example-messages.json Package Control.py example-packages.json example-repositories.json Package Control.sublime-settings lib package-metadata.json Main.sublime-menu *readme.creole
Ok, extract those into your Packages/Package Control/ folder and you should be good to go.
Awesome, it works perfectly! Thank you so much for the troubleshooting help.
It is happening to me right now. Sorry for posting on this closed issue.
Is there any workaround? Can I use my own github account to authenticate the github api calls? Given the number of packages, I always hit the limit and I'm unable to install any package.
Regards
Same here, I just downloaded the package for the first time and get only 403 errors from GitHub. Upgrading to the testing version doesn't help.
Same here. Yesterday it worked perfectly but today it spits out tons of 403 errors ("API Rate Limit Exceeded for XXX.XXX.XXX.XXX")
as well here in Paris :) It was working well yesterday. I'm just trying to start using sublime text 2. Hope we can found some quick solutions thanks for you help. Does I need to reinstall package control, I've been checking there's no files missing.
first error : Package Control: Error downloading repository. URL error [Errno 54] Connection reset by peer downloading https://api.github.com/repos/PogiNate/SublimeWiki.
then : Package Control: Error downloading repository. URL error [Errno 61] Connection refused downloading https://api.github.com/repos/facelessuser/ExportHtml.
also : Package Control: Error downloading repository. URL error _ssl.c:475: The handshake operation timed out downloading https://api.github.com/repos/rrerolle/sublime-scheme-cycler.
Package Control: Error downloading repository. URL error [Errno 8] nodename nor servname provided, or not known downloading https://api.github.com/repos/Paaskehare/pastebin-sublime-plugin.
Package Control: Error downloading repository. URL error [Errno 185090050] _ssl.c:328: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib downloading https://api.github.com/repos/skt84/Schemr.
at the end a lot of : Package Control: Error downloading repository. HTTP error 403 downloading https://api.github.com/repos/
I must said it's a very clean instal as it's just my beginning on sublime text2, my os is brand new mountain lion with clean install.
Thanks for this great software by the way.
Might be a github issue : https://status.github.com/ they are experiencing some problems.
It is my first day using testing sublime Text / package control so I took this as a bug, but if yesterday you were working properly it might be just that github is having problems.
Thanks I will try to make install manually
Same error here.
Same here. (UK)
I've tried the the instructions from earlier in this thread, but no luck. HTTP error 403 all the way.
11:52 UTC Weve identified and blocked several misbehaving API applications. Service and performance are recovering. 10:42 UTC Temporarily throttling api.github.com and raw.github.com traffic to mitigate extremely high loads caused by some misbehaving software.
Ups. To big popularity Sublime package control?
I've got some difficulty installing, Jquery for Sublime Text 2 I know this not the right place but as there's many github for this install it's a bit hard to choose... Thanks
is this the right plugin : https://github.com/mrmartineau/jQuery ?
Because there's also this one : https://github.com/SublimeText/jQuery ?
It's working again thanks
and i've found a package called Jquery in install package control, thanks.
All back to normal.
I was having the same problem downloading my own package (https://github.com/entomb/sublime-ink-helper), this wasn't caused by to many requests to the API.
I solved it by changing the user-agent on the "Package Control.sublime-settings" file to a browser user agent. This stopped the 403 errors.
@entomb Please see #274 for an explanation
"Package Control: Error downloading repository. HTTP error 403 downloading https://api.github.com/ " any ideas on this ?