Skip to content

Error when creating new hero #15

@DavidPaf

Description

@DavidPaf

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Follow steps to start React app npm start
-> Add new hero

ERROR:

node:events:505
throw er; // Unhandled 'error' event
^
Error [MongoError]: failed to connect to server [xxxx.mongo.cosmos.azure.com:xxxx] on first connect [Error: connect ETIMEDOUT 20.53.41.2:10255

Note: changed actual value of host and port to correct value already.

Any log messages given by the failure

PS C:\Users\ncdung\react-cosmosdb> node server/server.js

(node:2320) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:2320) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
(node:2320) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
(node:2320) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
(node:2320) DeprecationWarning: open() is deprecated in mongoose >= 4.11.0, use openUri() instead, or set the useMongoClient option if using connect() or createConnection(). See http://mongoosejs.com/docs/connections.com/docs/connections.html#use-mongo-client

node:events:505
throw er; // Unhandled 'error' event
^
Error [MongoError]: failed to connect to server [xxxx.mongo.cosmos.azure.com:xxxx] on first connect [Error: connect ETIMEDOUT 20.53.41.2:10255
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) {
name: 'MongoError'
}]

Expected/desired behavior

New hero could be added to cosmos db correctly without timeout error

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

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