# Password authentication failed for user "kittyuser"

**URL:** https://forum.flow.com/t/password-authentication-failed-for-user-kittyuser/1479
**Category:** Flow JavaScript SDK
**Tags:** flow-sdk-js
**Created:** [March 15, 2021, 8:34am UTC](https://forum.flow.com/t/password-authentication-failed-for-user-kittyuser/1479 "2021-03-15T08:34:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/mio/32/349_2.png) [@Mio](https://forum.flow.com/u/Mio)
#### Post date: [March 15, 2021, 8:34am UTC](https://forum.flow.com/t/password-authentication-failed-for-user-kittyuser/1479/1 "2021-03-15T08:34:21Z")

</div>

Hi there,

Trying to run “kitty-items-js” by following its instruction on “kitty-items” GitHub page:

However, there seems to be an error related to password authentication ( see below ):

* * *

> flow-kitty-items@0.0.1 start:dev  
> tsnd --respawn src/index.ts

[INFO] 01:28:04 ts-node-dev ver. 1.1.1 (using ts-node ver. 9.1.1, typescript ver. 4.1.2)  
error error: password authentication failed for user “kittyuser”  
at Parser.parseErrorMessage (kitty-items/kitty-items-js/node\_modules/pg-protocol/src/parser.ts:357:11)  
at Parser.handlePacket (kitty-items/kitty-items-js/node\_modules/pg-protocol/src/parser.ts:186:21)  
at Parser.parse (kitty-items/kitty-items-js/node\_modules/pg-protocol/src/parser.ts:101:30)  
at Socket. (/kitty-items/kitty-items-js/node\_modules/pg-protocol/src/index.ts:7:48)  
at Socket.emit (node:events:378:20)  
at addChunk (node:internal/streams/readable:313:12)  
at readableAddChunk (node:internal/streams/readable:288:9)  
at Socket.Readable.push (node:internal/streams/readable:227:10)  
at TCP.onStreamRead (node:internal/stream\_base\_commons:190:23) {  
length: 105,  
severity: ‘FATAL’,  
code: ‘28P01’,  
detail: undefined,  
hint: undefined,  
position: undefined,  
internalPosition: undefined,  
internalQuery: undefined,  
where: undefined,  
schema: undefined,  
table: undefined,  
column: undefined,  
dataType: undefined,  
constraint: undefined,  
file: ‘auth.c’,  
line: ‘329’,  
routine: ‘auth\_failed’  
}

* * *

When you look at “docker-compose.yml”, the environment is as below:

* * *

```
environment:
  - POSTGRES_DB=kittyitems
  - POSTGRES_USER=kittyuser
  - POSTGRES_PASSWORD=kittypassword

```

* * *

Any advises would be appreciated. Thanks!

---

<div class="post-metadata">

### Author: ![Mio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/mio/32/349_2.png) [@Mio](https://forum.flow.com/u/Mio)
#### Post date: [March 21, 2021, 8:09am UTC](https://forum.flow.com/t/password-authentication-failed-for-user-kittyuser/1479/2 "2021-03-21T08:09:34Z")

</div>

I think it may be caused by postgres\_db set-up on Windows. Perhaps the port “5432” is being used by other programs.

Anyone who has similar experience on Windows? Please kindly share the solution.

Thanks!

---

<div class="post-metadata">

### Author: ![juho](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@juho](https://forum.flow.com/u/juho)
#### Post date: [January 19, 2023, 2:54pm UTC](https://forum.flow.com/t/password-authentication-failed-for-user-kittyuser/1479/3 "2023-01-19T14:54:26Z")

</div>

Thank you! This solution works for me!
