wbond / package_control

The Sublime Text package manager
https://packagecontrol.io
4.8k stars 818 forks source link

Package Error #216

Closed monderRed closed 12 years ago

monderRed commented 12 years ago

"Package Control: Error downloading repository. HTTP error 403 downloading https://api.github.com/ " any ideas on this ?

whalesingswee commented 12 years ago

same here, thought its just me.

MrSunshyne commented 12 years ago

Same issue here. Any idea why this is happening?

wbond commented 12 years ago

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.

MrSunshyne commented 12 years ago

I was only attempting to install some packages via ST2 Package Control. So I should wait for some time before trying again?

wbond commented 12 years ago

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.

matthewsinclair commented 12 years ago

Is there any way to manually reset the package data?

wbond commented 12 years ago

No, but I am doing a first run of caching package data with authenticated requests.

wbond commented 12 years ago

Alright, for tonight this issue should be fixed.

matthewsinclair commented 12 years ago

Yep, it certainly seems to be. Thanks for the awesomely quick response!

monderRed commented 12 years ago

thanks man! :) nice work!

papercheck commented 12 years ago

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

wbond commented 12 years ago

@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?

papercheck commented 12 years ago

Thank you for the quick response!

{ "auto_upgrade_last_run": 1352833924, "repositories": [ "https://github.com/SublimeText/VBScript.git" ] }

wbond commented 12 years ago

Can you try installing the testing version (http://wbond.net/sublime_packages/package_control/installation#Testing_Version)?

papercheck commented 12 years ago

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.

wbond commented 12 years ago

Do you have multiple package control folders inside of your Packages/ folder? (go to Preferences > Browse Packages)

papercheck commented 12 years ago

Yes, it looks like there are 75 folders.

wbond commented 12 years ago

I presume they do not all contain package control. Is there one called "Package Control" and another called "sublime_package_control"?

papercheck commented 12 years ago

It looks like there are two folders called "Package Control," but none of them are called "sublime_package_control."

wbond commented 12 years ago

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?

papercheck commented 12 years ago

It appears that one folder is Package Control, while the other is PackageControl.

wbond commented 12 years ago

Try deleting both and then try installing the testing version from scratch.

papercheck commented 12 years ago

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.

wbond commented 12 years ago

Try opening Preferences > Settings - User and see if it is listed under ignored_packages.

papercheck commented 12 years ago

The only item under ignored_packages is: "ignored_packages": ["Vintage"]

wbond commented 12 years ago

Can you paste the contents of your Sublime Text console after a fresh startup?

papercheck commented 12 years ago
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
wbond commented 12 years ago

Based on the last line, it seems Package Control is installed and functioning.

papercheck commented 12 years ago

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!

wbond commented 12 years ago

Well, perhaps the Default.sublime-commands files in Packages/Package Control/ is empty? That is where all of the command palette entries are stored.

papercheck commented 12 years ago

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

wbond commented 12 years ago

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?

papercheck commented 12 years ago

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

wbond commented 12 years ago

Ok, extract those into your Packages/Package Control/ folder and you should be good to go.

papercheck commented 12 years ago

Awesome, it works perfectly! Thank you so much for the troubleshooting help.

asmatic77 commented 11 years ago

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

mkuhn commented 11 years ago

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.

sir-oliver commented 11 years ago

Same here. Yesterday it worked perfectly but today it spits out tons of 403 errors ("API Rate Limit Exceeded for XXX.XXX.XXX.XXX")

inkobl commented 11 years ago

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.

asmatic77 commented 11 years ago

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.

inkobl commented 11 years ago

Thanks I will try to make install manually

Preen commented 11 years ago

Same error here.

Jaco-E commented 11 years ago

Same here. (UK)

I've tried the the instructions from earlier in this thread, but no luck. HTTP error 403 all the way.

DeyV commented 11 years ago

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?

inkobl commented 11 years ago

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.

sir-oliver commented 11 years ago

All back to normal.

entomb commented 11 years ago

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.

wbond commented 11 years ago

@entomb Please see #274 for an explanation