Skip to content

Error code EAI_AGAIN #60

@bobmulder

Description

@bobmulder

Hey all,

I tried using this library because I am looking for something better than the AWS Library.

I used to following code:

var ddb = require('dynamodb');

module App.Infrastructure.Storage.DynamoDB
{
    export class DynamoDBRepository
    {
        public db;

        constructor()
        {
            this.db = ddb.ddb({
                accessKeyId: 'KEYID',
                secretAccessKey: 'ACCESSKEY',
                endpoint: 'dynamodb.us-east-2.amazonaws.com'
            });
        }
    }
}

However I got the following error after using this part on a request:

{
  "code": "EAI_AGAIN",
  "errno": "EAI_AGAIN",
  "syscall": "getaddrinfo",
  "hostname": "dynamodb.us-east-2.amazonaws.com",
  "host": "dynamodb.us-east-2.amazonaws.com",
  "port": 80
}

Can somebody explain me what this means? I can't find anything online and have no idea what to do. I am afraid this lib is out of date?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions