Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error allmychanges.api.ApiError: FORBIDDEN and no info about the line that caused error #9

Open
bessarabov opened this issue Nov 24, 2014 · 1 comment

Comments

@bessarabov
Copy link
Contributor

I have created file gh.list to import to http://allmychanges.com/ (I've created it with the command get_github_favorites bessarabov > gh.list https://metacpan.org/release/App-AllMyChangesUtils ).

But when use cat gh.list | amch import to import that file. I get the error FORBIDDEN. The bad thing that I from the script output I can't understand what line in my file gives that API error.

Here is my file and the full error I get:

root@f25006768dbc:/allmychanges# cat gh.list
namespace,name,source
Python,fig,https://github.com/docker/fig.git
Perl,Net-PayPal,https://github.com/garu/Net-PayPal.git
Python,allmychanges,https://github.com/svetlyak40wt/allmychanges.git
JavaScript,xkcd1446,https://github.com/MagicalTux/xkcd1446.git
Perl,gitprep,https://github.com/yuki-kimoto/gitprep.git
Perl,OrePAN2,https://github.com/tokuhirom/OrePAN2.git
C++,SmartHomeServer,https://github.com/sergei-svistunov/SmartHomeServer.git
VimL,Dockerfile.vim,https://github.com/ekalinin/Dockerfile.vim.git
VimL,perldoc-vim,https://github.com/hotchpotch/perldoc-vim.git
C,git,https://github.com/git/git.git
JavaScript,blackmagicwoman,https://github.com/sullenor/blackmagicwoman.git
Perl,Crypt-PBKDF2,https://github.com/arodland/Crypt-PBKDF2.git
unknown,keybase-issues,https://github.com/keybase/keybase-issues.git
Python,official-images,https://github.com/docker-library/official-images.git
Python,docker-registry,https://github.com/docker/docker-registry.git
Perl,log4perl,https://github.com/mschilli/log4perl.git
JavaScript,project-stub,https://github.com/bem/project-stub.git
JavaScript,raphael,https://github.com/DmitryBaranovskiy/raphael.git
CSS,normalize.css,https://github.com/necolas/normalize.css.git
JavaScript,bower,https://github.com/bower/bower.git
Perl,perl-App-stopw,https://github.com/perlancar/perl-App-stopw.git
JavaScript,declutter,https://github.com/beeos/declutter.git
unknown,corpus,https://github.com/beeos/corpus.git
Go,docker,https://github.com/docker/docker.git
Objective-C,beardedspice,https://github.com/beardedspice/beardedspice.git
unknown,typography,https://github.com/sullenor/typography.git
CSS,Responsive-Dashboard,https://github.com/Ehesp/Responsive-Dashboard.git
CSS,frontend-instruments,https://github.com/basvasilich/frontend-instruments.git
Python,inbox,https://github.com/inboxapp/inbox.git
Perl,Seacan,https://github.com/gugod/Seacan.git
root@f25006768dbc:/allmychanges#
root@f25006768dbc:/allmychanges# cat gh.list | amch import
Traceback (most recent call last):
  File "/usr/local/bin/amch", line 9, in <module>
    load_entry_point('allmychanges==0.3.0', 'console_scripts', 'amch')()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 488, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 474, in main
    self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 758, in invoke
    return self.invoke_subcommand(ctx, cmd, cmd_name, ctx.args[1:])
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 767, in invoke_subcommand
    return cmd.invoke(cmd_ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 659, in invoke
    ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 325, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/allmychanges/client.py", line 87, in _import
    _add_changelogs(config, dataset.dict)
  File "/usr/local/lib/python2.7/dist-packages/allmychanges/client.py", line 177, in _add_changelogs
    source=source)
  File "/usr/local/lib/python2.7/dist-packages/allmychanges/api.py", line 57, in update_changelog
    source=source))
  File "/usr/local/lib/python2.7/dist-packages/allmychanges/api.py", line 37, in <lambda>
    _put = lambda *args, **kwargs: _call('put', *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/allmychanges/api.py", line 31, in _call
    raise ApiError(response.reason, response)
allmychanges.api.ApiError: FORBIDDEN
root@f25006768dbc:/allmychanges#
@svetlyak40wt
Copy link
Member

I've to check, but possible that is because you have in this list a package which already in the service, but under another namespace/name and was added by somebody else. In this case you can't change it's namespace and name and script should ask if you want to track this package as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants