Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

pq: null value in column "username" violates not-null constraint #243

Open
ghost opened this issue May 9, 2020 · 0 comments
Open

pq: null value in column "username" violates not-null constraint #243

ghost opened this issue May 9, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented May 9, 2020

Hi guys,

Hope you are all well !

I run the following as per the README instructions (edited also /etc/hosts):

make run-twitter
go run cli/main/main.go twitter x0rzkov

And I have the following error displayed:

twitter_inserter_users_1     | (/app/db/utils.go:18)
twitter_inserter_users_1     | [2020-05-09 05:02:20]  pq: null value in column "username" violates not-null constraint
twitter_inserter_users_1     |
twitter_inserter_users_1     | (/app/db/utils.go:18)
twitter_inserter_users_1     | [2020-05-09 05:02:20]  pq: null value in column "username" violates not-null constraint
twitter_inserter_users_1     |
twitter_inserter_users_1     | (/app/db/utils.go:18)
twitter_inserter_users_1     | [2020-05-09 05:02:20]  pq: null value in column "username" violates not-null constraint
twitter_inserter_users_1     |
twitter_inserter_users_1     | (/app/db/utils.go:18)
twitter_inserter_users_1     | [2020-05-09 05:02:20]  pq: null value in column "username" violates not-null constraint
twitter_inserter_users_1     | 2020/05/09 05:02:20 encountered error while working:  pq: null value in column "username" violates not-null constraint
twitter_inserter_users_1     | 2020/05/09 05:02:20 twitter_inserter_users is done here
twitter_inserter_users_1     | 2020/05/09 05:02:20 stopping twitter_inserter_users
twitter_inserter_users_1     | 2020/05/09 05:02:20 waiting for work to stop
twitter_inserter_users_1     | 2020/05/09 05:02:20 calling shutdown hooks
twitter_inserter_users_1     | 2020/05/09 05:02:20 shutting down qReader
my-kafka_1                   | [2020-05-09 05:02:27,069] INFO [GroupCoordinator 1001]: Preparing to restabilize group twitter.inserter.users with old generation 1 (kafka.coordinator.GroupCoordinator)
my-kafka_1                   | [2020-05-09 05:02:27,070] INFO [GroupCoordinator 1001]: Group twitter.inserter.users with generation 2 is now empty (kafka.coordinator.GroupCoordinator)
twitter_inserter_users_1     | 2020/05/09 05:02:27 shutting down postgres_client
twitter_inserter_users_1     | 2020/05/09 05:02:27 twitter_inserter_users is shut down
smag-mvp_twitter_inserter_users_1 exited with code 0

Is there any reason why it happens ?
Is it possible to fix it ?

Cheers,
X

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants