KunalKatariya opened a new issue, #8703:
URL: https://github.com/apache/incubator-devlake/issues/8703

   <!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   -->
   
   ## Question
   I created a GitHub PAT (classic) (Please note I  used github account of my 
private organization) and tried testing connection with it in Onboarding 
configuration` but I got "Connection failed, check your token or connection".
   Could this be a restriction from my organization's GitHub or is it something 
else?
   
   {
   "code": 0,
   "success": false,
   "message": "attached stack trace\n -- stack trace:\n | 
github.com/apache/incubator-devlake/plugins/github/api.testGithubConnAccessTokenAuth\n
 | \t/app/plugins/github/api/connection_api.go:209\n | [...repeated from 
below...]\nWraps: (2) verify token failed (400)\nWraps: (3) attached stack 
trace\n -- stack trace:\n | 
github.com/apache/incubator-devlake/helpers/pluginhelper/api.(*ApiClient).Do\n 
| \t/app/helpers/pluginhelper/api/api_client.go:381\n | 
github.com/apache/incubator-devlake/helpers/pluginhelper/api.(*ApiClient).Get\n 
| \t/app/helpers/pluginhelper/api/api_client.go:408\n | 
github.com/apache/incubator-devlake/plugins/github/api.testGithubConnAccessTokenAuth\n
 | \t/app/plugins/github/api/connection_api.go:207\n | 
github.com/apache/incubator-devlake/plugins/github/api.testConnection\n | 
\t/app/plugins/github/api/connection_api.go:164\n | 
github.com/apache/incubator-devlake/plugins/github/api.TestConnection\n | 
\t/app/plugins/github/api/connection_api.go:79\n | github.com/apac
 he/incubator-devlake/server/api.handlePluginCall.func1\n | 
\t/app/server/api/router.go:141\n | github.com/gin-gonic/gin.(*Context).Next\n 
| \t/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174\n | 
github.com/apache/incubator-devlake/server/api.OAuth2ProxyAuthentication.func1\n
 | \t/app/server/api/middlewares.go:95\n | 
github.com/gin-gonic/gin.(*Context).Next\n | 
\t/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174\n | 
github.com/apache/incubator-devlake/server/api.RestAuthentication.func1\n | 
\t/app/server/api/middlewares.go:117\n | 
github.com/gin-gonic/gin.(*Context).Next\n | 
\t/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174\n | 
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1\n | 
\t/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102\n | 
github.com/gin-gonic/gin.(*Context).Next\n | 
\t/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174\n | 
github.com/gin-gonic/gin.LoggerWithConfig.func1\n | 
\t/go/pkg/mod/github.com/gin-gonic/[email protected].
 1/logger.go:240\n | github.com/gin-gonic/gin.(*Context).Next\n | 
\t/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174\n | 
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest\n | 
\t/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:620\n | 
github.com/gin-gonic/gin.(*Engine).ServeHTTP\n | 
\t/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:576\n | 
net/http.serverHandler.ServeHTTP\n | 
\t/usr/local/go/src/net/http/server.go:2936\n | net/http.(*conn).serve\n | 
\t/usr/local/go/src/net/http/server.go:1995\n | runtime.goexit\n | 
\t/usr/local/go/src/runtime/asm_arm64.s:1172\nWraps: (4) Get 
"[https://api.github.com/user\](https://api.github.com/user%5C)": tls: failed 
to verify certificate: x509: certificate signed by unknown authority\nWraps: 
(5) Get 
"[https://api.github.com/user\"\nWraps](https://api.github.com/user%5C%22%5CnWraps):
 (6) tls: failed to verify certificate\nWraps: (7) x509: certificate signed by 
unknown authority\nError types: (1) *withstack.withStack (2) *errutil.wit
 hPrefix (3) *withstack.withStack (4) *errutil.withPrefix (5) *url.Error (6) 
*tls.CertificateVerificationError (7) x509.UnknownAuthorityError",
   "causes": [
   "Get "https://api.github.com/user": tls: failed to verify certificate: x509: 
certificate signed by unknown authority"
   ],
   "data": null
   }
   
   ## Screenshots
   If applicable, add screenshots to help explain.
   
   ## Additional context
   Add any other context here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to