Expand my Community achievements bar.

403 during call to createRoom

Avatar

Level 2

I am using a Rails application to create new LCCS rooms when needed.

The code works some of the time but other times it produces a 403 which is caught on line 572 of afcs.rb.  Here is the stack trace:

/Users/mschwab/work/GoodChat/lib/afcs.rb:572 :in `http_post'
/Users/mschwab/work/GoodChat/lib/afcs.rb:565 :in `http_post'
/Users/mschwab/work/GoodChat/lib/afcs.rb:325 :in `createRoom'
/Users/mschwab/work/GoodChat/app/controllers/rooms_controller.rb:77 :in `create_room'

my code that creates rooms is basically this:

    am = AFCS::AccountManager.new "http://connectnow.acrobat.com/goodcrush"

    am.login LiveCycleCredentials['livecycle_account']['username'], LiveCycleCredentials['livecycle_account']['password']

    lc_response = am.createRoom("randomdorm#{num}", 'randomdorm')

num is a numeric id that we use.  I am aware that if we create two rooms with the same name a 403 will result.  Are there any other known reasons for the 403?

3 Replies

Avatar

Employee

that's pretty much the only case in createRoom


Avatar

Level 2

We are still getting lots of 403s in our test environment.  This is happening even though we are creating rooms with names that do not yet exist in our account.

I don't think I have seen any 403s in our production environment.  I'll look for any discrepancies that might be causing an issue.

Avatar

Employee

assuming the URL in your logs is correct, I'll see if I can find some time to look at our logs and see if I see anything strange.

you could also call something like roomInfo after you get the error and verify that the room really exists at that point.