Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

运行报错 SSL routines:ssl3_read_bytes:tlsv1 alert protocol #11

Open
ZengTianShengZ opened this issue May 13, 2019 · 0 comments
Open

Comments

@ZengTianShengZ
Copy link

示例代码:

'use strict';

const apollo = require('node-apollo');

const config = {
  configServerUrl: 'https://apollo-config-dev.xxxxxxxxx.com',   
  appId: 'xxx-xxx',
  clusterName: 'default',
  namespaceName: [ 'namespaceName' ], // n1的配置会被n2配置覆盖
  // clientIp: '',
  };
 
async function start(params) {
  const result = await apollo.remoteConfigServiceFromCache(config);
  console.log(result);
  
}
start()

报错信息:

(node:8302) UnhandledPromiseRejectionWarning: Error: write EPROTO 4389111232:error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1536:SSL alert number 70

    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:67:16)
(node:8302) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8302) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

node - v11.12.0
node-apollo -v^1.2.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant