Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Panic when running todo (or other) application #48

Closed
slacki opened this issue Apr 26, 2016 · 2 comments
Closed

Panic when running todo (or other) application #48

slacki opened this issue Apr 26, 2016 · 2 comments
Assignees

Comments

@slacki
Copy link
Contributor

slacki commented Apr 26, 2016

Followed the README and installed the utron. Then fired up todo app and got this error:

C:\GoProjects\src\github.com\gernest\utron\fixtures\todo>go run main.go
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x70 pc=0x465e91]

goroutine 1 [running]:
github.com/gernest/utron.Run()
        C:/GoProjects/src/github.com/gernest/utron/utron.go:239 +0x31
main.main()
        C:/GoProjects/src/github.com/gernest/utron/fixtures/todo/main.go:10 +0x1b

goroutine 7 [chan receive]:
database/sql.(*DB).connectionOpener(0xc08212ed20)
        c:/go/src/database/sql/sql.go:634 +0x4c
created by database/sql.Open
        c:/go/src/database/sql/sql.go:481 +0x33d
exit status 2

This is the todo app config

{
    "app_name": "utron web app",
    "base_url": "http://localhost:8090",
    "port": 8090,
    "verbose": false,
    "static_dir": "static",
    "view_dir": "views",
    "database": "mysql",
    "database_conn": "mysql://root:@localhost/todo",
    "automigrate": true
}

I am using MySQL 5.6.24 and Go1.5.2 both running on Microsoft Windows [Version 10.0.10586] 64-bit machine.

@gernest gernest self-assigned this Apr 26, 2016
@gernest
Copy link
Owner

gernest commented Apr 26, 2016

I'm on this.

@slacki
Copy link
Contributor Author

slacki commented Apr 26, 2016

Used bad DNS syntax for "database_conn".

@slacki slacki closed this as completed Apr 26, 2016
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

2 participants