Dynasty无法连接到Dynamodb Local - SL3_GET_RECORD错误的版本号

时间:2016-07-14 12:10:00

标签: node.js ssl amazon-dynamodb

我正在尝试使用Dynasty与Dynamodb本地连接,我收到以下错误:

There was an error creating the table Error: write EPROTO 140735247142912:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:../deps/openssl/openssl/ssl/s3_pkt.c:362:
work@mac ~/d/b/app>

这就是我在本地运行Dynamodb的方式:

work@mac ~/d/t/dynamodb_local_2016-05-17> java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb -port 8080
Initializing DynamoDB Local with the following configuration:
Port:   8080
InMemory:   false
DbPath: null
SharedDb:   true
shouldDelayTransientStatuses:   false
CorsParams: *

我可以使用aws-sdk连接,但我无法通过Dynasty连接。

以下是代码:

const credentials = {
        accessKeyId: "<ACCESS_KEY>",
        secretAccessKey: "SECRET_KEY",
        region: "eu-west-1"
    };

const dynasty = require("dynasty")(credentials, "localhost:8080");

const tableOptions = {
    key_schema: {
            hash: ["mobile", "string"],
            range: ["id", "string"]
        },
    throughput: {
        write: 10,
        read: 10
    }
};

dynasty.create("Team", tableOptions)
    .then((response: any) => {
        console.log("The table was created");
    })
    .catch((err: Error) => {
        console.log("There was an error creating the table", err.stack);
    });

我试图寻找一个没有成功的解决方案,我希望有人可以指出我所缺少的......

0 个答案:

没有答案