error "raise APIForbidden('Invalid signature')"

109 views
Skip to first unread message

Eugeny Kozhanov

unread,
Apr 11, 2012, 1:36:28 AM4/11/12
to gets...@googlegroups.com
why appear error "raise APIForbidden('Invalid signature')"? base reasons?

David Cramer

unread,
Apr 11, 2012, 2:45:24 AM4/11/12
to gets...@googlegroups.com
This simply means that the client isnt authenticating correctly

Eugeny Kozhanov

unread,
Apr 11, 2012, 3:41:18 AM4/11/12
to sentry
This authenticating is not correctly:

client = Client(dsn='http://publicKey:secretKey@localhost:9000/1')

?





On 11 апр, 10:45, David Cramer <dcra...@gmail.com> wrote:
> This simply means that the client isnt authenticating correctly
>
> --
> David Cramerhttp://disqus.com/zeeghttp://twitter.com/zeeg

David Cramer

unread,
Apr 11, 2012, 3:53:21 AM4/11/12
to gets...@googlegroups.com
It should be whatever DSN is specified in the installation

Klemens

unread,
Apr 11, 2012, 4:40:41 AM4/11/12
to gets...@googlegroups.com
we use a init.d script to run sentry as a service. in the beginning we
had some troubles with our sentry instance because the dsn changed
(seemed to happen after restart). couldn't find out how to reproduce
this reliably, thus i never posted anything on the mailinglist. same
thing with email notifications, got sentry's error notifications even
though i deactivated them in the website of your sentry instance.

made an update to the latest stable release (a week ago i thing).
since then both problems disappeared :)

so make sure your DSN's are still the same (check the /projects/ page
of your sentry instance), and make an update if you aren't on the
latest version.

regards,
klemens

--
klemens mantzos
http://fetzig.at/

Eugeny Kozhanov

unread,
Apr 11, 2012, 5:33:45 AM4/11/12
to sentry
DSN is not changed. And I use it in the Client. Why I have error like
"API forbidden"?

On 11 апр, 12:40, Klemens <klem...@fetzig.at> wrote:
> we use a init.d script to run sentry as a service. in the beginning we
> had some troubles with our sentry instance because the dsn changed
> (seemed to happen after restart). couldn't find out how to reproduce
> this reliably, thus i never posted anything on the mailinglist. same
> thing with email notifications, got sentry's error notifications even
> though i deactivated them in the website of your sentry instance.
>
> made an update to the latest stable release (a week ago i thing).
> since then both problems disappeared :)
>
> so make sure your DSN's are still the same (check the /projects/ page
> of your sentry instance), and make an update if you aren't on the
> latest version.
>
> regards,
> klemens
>
>
>
>
>
>
>
>
>
> On Wed, Apr 11, 2012 at 09:53, David Cramer <dcra...@gmail.com> wrote:
> > It should be whatever DSN is specified in the installation
>
> > --
> > David Cramer
> >http://disqus.com/zeeg
> >http://twitter.com/zeeg
>

Eugeny Kozhanov

unread,
Apr 11, 2012, 6:52:01 AM4/11/12
to sentry
"raven test https://publicKey:secureKey@localhost:9000" also return
this error.
Please help!

Wynn Wilkes

unread,
Apr 11, 2012, 11:12:37 AM4/11/12
to gets...@googlegroups.com
Are you explicitly using 'publicKey' and 'secureKey' as your keys? If so, replace those with their counterparts you can find in the sentry project admin page.

Eugeny Kozhanov

unread,
Apr 12, 2012, 2:25:20 AM4/12/12
to gets...@googlegroups.com
Can I view sentry project admin page? how?

Wynn Wilkes

unread,
Apr 12, 2012, 5:44:06 PM4/12/12
to gets...@googlegroups.com
I have mine setup so that I can get the keys from a default user I create.

I can view the keys by going to the projects->Manage page, selecting a project, then selecting my user in the Members list. 

For a URL like this:

I get a list of items, including the public key, secret key, and client dsn.

I also programmatically can get the dsn with something like this:
        projMember = sm.ProjectMember.objects.using('sentry').get(project=_sentry_proj_id)
        if not projMember.public_key or not projMember.secret_key:
            projMember.save()
        return projMember.get_dsn()


Hopefully that helps.

Wynn

Eugeny Kozhanov

unread,
Apr 15, 2012, 3:32:19 AM4/15/12
to gets...@googlegroups.com
Hi!
I didn't see Manage page. May be, because I must login on main page?

Wynn Wilkes

unread,
Apr 15, 2012, 11:34:25 PM4/15/12
to gets...@googlegroups.com
Yes - login from main page and explore the UI...

Eugeny Kozhanov

unread,
Apr 16, 2012, 8:58:49 AM4/16/12
to gets...@googlegroups.com
What default login and password for Sentry?

David Cramer

unread,
Apr 16, 2012, 2:42:25 PM4/16/12
to gets...@googlegroups.com
There are no defaults. Please follow the quick start guide and do what it says. It will ask you to create an account, do that, login with the account, and everything should be obvious.

Eugeny Kozhanov

unread,
Apr 17, 2012, 6:14:08 AM4/17/12
to gets...@googlegroups.com
There is not anything about create account in quick start guide...

понедельник, 16 апреля 2012 г., 22:42:25 UTC+4 пользователь David Cramer написал:
понедельник, 16 апреля 2012 г., 22:42:25 UTC+4 пользователь David Cramer написал:
понедельник, 16 апреля 2012 г., 22:42:25 UTC+4 пользователь David Cramer написал:
понедельник, 16 апреля 2012 г., 22:42:25 UTC+4 пользователь David Cramer написал:

David Cramer

unread,
Apr 17, 2012, 2:42:42 PM4/17/12
to gets...@googlegroups.com
When you run through the quick start it will ask you to create an account. It happens the first time the database migrations run.
Reply all
Reply to author
Forward
0 new messages