-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployment index API service connection error #102
Comments
I also get the same error. Is there any solution for this?
|
Start the index worker to automatically pass |
seem issuse.Have you solved your problem?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Args:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xa6a67f]
goroutine 6 [running]:
github.com/jackc/pgx/v5/pgtype.(*Map).RegisterType(0xc0001bd420, 0x0)
/go/pkg/mod/github.com/jackc/pgx/v5@v5.6.0/pgtype/pgtype.go:253 +0x1f
github.com/kdimentionaltree/ton-index-go/index.afterConnectRegisterTypes({0x193bdb0, 0xc00007cf00}, 0xc0001df680)
/go/app/index/database.go:26 +0xec
github.com/jackc/pgx/v5/pgxpool.NewWithConfig.func1({0x193bdb0, 0xc00007cf00})
/go/pkg/mod/github.com/jackc/pgx/v5@v5.6.0/pgxpool/pool.go:233 +0x1a8
github.com/jackc/puddle/v2.(*Pool[...]).initResourceValue.func1()
/go/pkg/mod/github.com/jackc/puddle/v2@v2.2.1/pool.go:409 +0xdc
created by github.com/jackc/puddle/v2.(*Pool[...]).initResourceValue in goroutine 1
/go/pkg/mod/github.com/jackc/puddle/v2@v2.2.1/pool.go:407 +0xf6
At what steps and how are database types defined?
data_type_names := []string{
"tonaddr",
"_tonaddr",
"tonhash",
"_tonhash",
}
for _, type_name := range data_type_names {
data_type, _ := conn.LoadType(ctx, type_name)
conn.TypeMap().RegisterType(data_type)
}
The text was updated successfully, but these errors were encountered: