docusign / code-examples-python

Docusign Python code examples and launcher
https://developers.docusign.com/
MIT License
45 stars 55 forks source link

unable to get local issuer certificate #36

Closed pzg250 closed 1 year ago

pzg250 commented 1 year ago

Hi, After download the demo, and config the ds_config.py, run the app. I got this error during process. Anyone can help? Thanks in advance!

127.0.0.1 - - [04/Mar/2023 22:31:59] "GET /ds/callback?code=eyJ0eXAiOiJNVCIsImFsZyI6IlJTMjU2Iiwia2lkIjoiNjgxODVmZjEtNGU1MS00Y2U5LWFmMWMtNjg5ODEyMjAzMzE3In0.AQsAAAABAAYABwCALDM1vRzbSAgAgLi5fL0c20gCALbi4SrnI_RDshOSksbxKEAVAAEAAAAYAAEAAAAFAAAADQAkAAAAMTMyZjEyZDUtZWZhNi00ZmFmLWI4NmEtMGViMjRmNDg2MmNiIgAkAAAAMTMyZjEyZDUtZWZhNi00ZmFmLWI4NmEtMGViMjRmNDg2MmNiNwCcIV56zLFJR6pJzC8gDNlHMAAA__QMuBzbSBIAAQAAAAMAAAB0c3Y.VVjJFOAeRdluqfLBVvAwHYsOpQA2PNuEMM1kFPnSvdyoazKSAhyvOYhd-CcmWdzYY7WUJxOL4b2UnYWv4Z8yZcWjc8gTuTQ_1TrlF1ZHqgwmhAfQ6jH4Rdanw11RaMv1K-rW0lXFmBczlUaEKezAAS9_hTtiPqfZGs5yDDCvy19JdWnt6lasala8v2MRZKaSGPkAYXaHR6pIDzQOkDHTZ8XWpAfjF4BJbIyt935j0MQaVt5fiCRJf8RIMS1uOBtbGwWinY2Cy15xW6Ksh6UA9S_QxVpJmicrkYuFzsX_qCA1bFfvfka2lpbslZvhpqs2Ztt2kkmvX_H4JYEyD6Lz2Q&state=C880DA7425224C36AB2283F49A3C3397 HTTP/1.1" 500 -

image

Adrian-DS-Support commented 1 year ago

Hi,

Most probably the url in your 'req' variable is incomplete. Check that the line self.do_open(http.client.HTTPSConnection, req has a valid url in the req variable.

Regards Adrian

InbarGazit commented 1 year ago

Did you try to use quickstart? I highly recommend doing that as it's going to configure everything for you automatically and may resolve this issue.

pzg250 commented 1 year ago

Did you try to use quickstart? I highly recommend doing that as it's going to configure everything for you automatically and may resolve this issue.

Hi , Thanks for your response. I can not run quickstart directly. example: for python it shows some import error

Traceback (most recent call last):
  File "/Users/major/Downloads/quickstart-1-python/app/quick_acg/run.py", line 2, in <module>
    from app.quick_acg.quick_acg_app import quick_acg_app
ModuleNotFoundError: No module named 'app'

I also tried the nodejs quickstart, it shows TIMEOUT issue.

(docusign) major@MacBook-Air-2 quick_acg % npm run start

> docusign-code-examples-quick-acg@1.0.0 start
> npm test && node quickACG.js

> docusign-code-examples-quick-acg@1.0.0 test
> run-script-os

> docusign-code-examples-quick-acg@1.0.0 test:default
> [ ! -d 'node_modules' ] || (rm -rf ../node_modules && mv -f node_modules ../)

Listening on 3000
Ready! Open http://localhost:3000
_DSAuthCodeGrant {
  _debug_prefix: 'DSAuthCodeGrant',
  _accessToken: undefined,
  _refreshToken: undefined,
  _tokenExpiration: undefined,
  _debug: true
}
DSAuthCodeGrant: checkToken: Starting up--need a token

/Users/major/Downloads/quickstart-1-node.js/node_modules/node-fetch/lib/index.js:1491
            reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
                   ^
FetchError: request to https://raw.githubusercontent.com/docusign/code-examples-csharp/master/manifest/eSignatureManifest.json failed, reason: read ETIMEDOUT
    at ClientRequest.<anonymous> (/Users/major/Downloads/quickstart-1-node.js/node_modules/node-fetch/lib/index.js:1491:11)
    at ClientRequest.emit (node:events:526:28)
    at TLSSocket.socketErrorListener (node:_http_client:442:9)
    at TLSSocket.emit (node:events:526:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  type: 'system',
  errno: 'ETIMEDOUT',
  code: 'ETIMEDOUT'
}
InbarGazit commented 1 year ago

are you behind some firewall or some other secure server protection tool that may be blocking some requests?

paigesrossi commented 1 year ago

Hi @pzg250 I'm not able to reproduce this issue. Are you still seeing this? And if so, can you share the command you're using to run the Quickstart app?

InbarGazit commented 1 year ago

Closing this with no activity, we can re-open if this is still a problem