Issue adding Github Organization to Codacy

I am trying to add a github organization to codacy and I am getting a 500 on the organizations page. I have the github plugin installed and I can see the organization in the codacy page, however when I click the add button I get a popup saying “Well, this is embarrassing … Could not add the organization”

Browsers Attempted:

  • Firefox
  • Chrome

Info from inspector:

Post request:

Response Code:

500 Internal Server Error

Response Payload:

  "message": "Could not add the organization",
  "actions": [],
  "error": "InternalServerError"

Response Headers:

Key Value
access-control-allow-credentials true
access-control-allow-origin https link to: app dot codacy dot com (removed due to limit on links in post)
cache-control no-cache, no-store, must-revalidate
content-length 87
content-type application/json
date Tue, 30 Nov 2021 17:56:42 GMT
expires 0
pragma no-cache
referrer-policy origin-when-cross-origin, strict-origin-when-cross-origin
request-time 14
server CloudFront
strict-transport-security max-age=63072000; includeSubdomains; preload
trace-id redacted
vary Origin
via 1.1 (CloudFront)
x-amz-cf-id Redacted
x-amz-cf-pop SFO53-C1
x-cache Error from cloudfront
x-content-type-options nosniff
X-Firefox-Spdy h2
x-frame-options sameorigin
x-permitted-cross-domain-policies master-only
x-xss-protection 1; mode=block

Request Payload:

  "provider": "gh",
  "remoteIdentifier": "number in string format, actual value redacted",
  "name": "My organization name, actual value redacted",
  "type": "Organization"

Request Headers:

Key Value
Accept * / *
Accept-Encoding gzip, deflate, br
Accept-Language en-US,en;q=0.5
Connection keep-alive
Content-Length 91
content-type application/json; charset=utf-8
Cookie redacted
csrf-token nocheck
Origin https link to: app dot codacy dot com (removed due to limit on links in post)
Referer https link to: app dot codacy dot com slash organization (removed due to limit on links in post)
Sec-Fetch-Dest empty
Sec-Fetch-Mode cors
Sec-Fetch-Site same-origin
Sec-GPC 1
TE trailers
User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0
x-ms-command-name /0.0.1 ms-rest-js/2.1.0 OS/WindowsNT 10.0; Win64; x64

Any help would be greatly appreciated!

Hi @cjimison

Can you please go to Your account on the top right under your avatar, click on Access management and revoke your GitHub token?

Afterwards, please logout and login with Github to recreate your token. Please let me know if you are able to add the org after recreating the token

That seemed to resolved the issue. Thanks!

1 Like