Integration Application Server with PostgreSQL

Hello! Could you please help me. I try to use PostgreSQL to store data from devices.
I have version of Chirpstack-application-server:
3.5.1
I corrected chirpstack-application-server.toml next way
enabled=[“mqtt”, “postgresql”]

[application_server.integration.mqtt]
server=“tcp://localhost:1883”

[application_server.integration.postgresql]
dsn=“postgres://loraserver_as:mypassword@localhost/loraserver_as_events?sslmode=disable”
And I have next error:
root@SRV1F5MKYREP9:~# Nov 13 11:20:26 SRV1F5MKYREP9 chirpstack-application-server[5627]: time=“2019-11-13T11:20:26+03:00” level=error msg=“integration/multi: integration error” ctx_id=eb525270-1dee-4df9-bd88-891ff48a1af7 error=“insert error: pq: unsupported Unicode escape sequence” integration="*postgresql.Integration"
What can be wrong?

I have the same problem. PostgreSQL refuse the connection, and I cannot access ChirpStack Application Server from the browser with localhost: 8080, refuse the connection. The same goes for ChirpStack Network Server. I am using a Raspberry with RAK2245.

I get this in the ChirpStack Network Server output log:
aza 13 16:54:05 rak-gateway chirpstack-network-server[586]: time=“2019-11-13T16:54:05+01:00” level=warning msg=“storage: ping PostgreSQL database error, will retry in 2s” error=“dial tcp [::1]:5432: connect: connection refused”
aza 13 16:54:07 rak-gateway chirpstack-network-server[586]: time=“2019-11-13T16:54:07+01:00” level=warning msg=“storage: ping PostgreSQL database error, will retry in 2s” error=“dial tcp [::1]:5432: connect: connection refused”

I get this in the ChirpStack Application Server output log:
aza 13 16:29:29 rak-gateway chirpstack-application-server[1109]: time=“2019-11-13T16:29:29+01:00” level=warning msg=“storage: ping PostgreSQL database error, will retry in 2s” error=“dial tcp [::1]:5432: connect: connection refused”
aza 13 16:29:31 rak-gateway chirpstack-application-server[1109]: time=“2019-11-13T16:29:31+01:00” level=warning msg=“storage: ping PostgreSQL database error, will retry in 2s” error=“dial tcp [::1]:5432: connect: connection refused”