gu-who icon indicating copy to clipboard operation
gu-who copied to clipboard

Oops, an error occured

Open vorburger opened this issue 11 years ago • 5 comments

Hello - I've hit a red "Oops, an error occured" with This exception has been logged with id 6jbmp8eo0 & 6jbmpa5ai (tried) twice, if you can fix this it would be great to use this tool.. here's exact steps of what I was doing:

  1. went to https://gu-who.herokuapp.com/
  2. clicked on "Log In via GitHub!"
  3. using myself (vorburger)
  4. choose the TemenosDS org. (which was just set-up -- there isn't some cacheing issue or something?)
  5. it went to https://gu-who.herokuapp.com/audit/TemenosDS
  6. the red "Oops, an error occured" page appeared

vorburger avatar Aug 28 '14 15:08 vorburger

Hi @vorburger, thanks for reporting your issue! So, you've fallen foul of a rule I implemented on gu:who to prevent casual denial-of-service attacks. gu:who requires that your organisation has at least one public member whose account is over 3 months old. At the moment your organisation has zero public members:

https://github.com/orgs/TemenosDS/people

If you can make even one of your members public, so long as their account is over 3 months old, then gu:who will not blow up.

Apologies for the poor way this issue is reported to you, the user. The error message in the logs (updated with https://github.com/guardian/gu-who/pull/26) is actually quite clear:

2014-08-28T14:56:59.699945+00:00 app[web.1]: [ESC[31merrorESC[0m] play - Cannot invoke the action, eventually got an error: java.lang.IllegalArgumentException: requirement failed: Organisation @TemenosDS has no *public* members.
2014-08-28T14:56:59.710113+00:00 app[web.1]: 
2014-08-28T14:56:59.710117+00:00 app[web.1]: The organisation must have at least one public member whose GitHub account is over 3 months old.
2014-08-28T14:56:59.710126+00:00 app[web.1]:    at play.api.DefaultApplication.handleError(Application.scala:402) [com.typesafe.play.play_2.11-2.3.2.jar:2.3.2]
2014-08-28T14:56:59.699952+00:00 app[web.1]: If your account is over 3 months old, please go to https://github.com/orgs/TemenosDS/members

I need to fix the user-experience here (gotta pick a scala validation framework!), so will leave this bug open to remind myself.

rtyley avatar Aug 28 '14 15:08 rtyley

Thanks for your prompt response! Sorry to be a pain, but.. are you sure? Because now I'm public on https://github.com/TemenosDS, and retried it, but hit the same red error, logged with IDs 6jbod91gl & 6jbodccak (one Token and one via GitHub).

vorburger avatar Aug 28 '14 20:08 vorburger

I can see you've resolved the public-member problem! Have you setup your 'people' repo?

https://github.com/guardian/gu-who/blob/master/people-repo.md

rtyley avatar Aug 28 '14 20:08 rtyley

Oh OK, now it all works... indeed it's a little difficult to guess this from "6jbod91gl" ! ;-)

vorburger avatar Aug 28 '14 22:08 vorburger

Yeah, the feedback to users through the web interface needs to be improved!

rtyley avatar Aug 29 '14 09:08 rtyley