Skip to content

error while access to url localhost:8080 #152

@15520528

Description

@15520528

i got those error while access to url localhost:8080

2019/03/01 16:34:17 http: proxy error: dial tcp 127.0.0.1:3001: connect: connection refused

here my code

func handler(w http.ResponseWriter, r *http.Request) {
	fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])
}

func StartService() {
	http.HandleFunc("/", handler)
	log.Fatal(http.ListenAndServe(":8080", nil))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions