Skip to content
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

go payment cannot run in windows env #31

Open
fajar7xx opened this issue Jul 13, 2023 · 0 comments
Open

go payment cannot run in windows env #31

fajar7xx opened this issue Jul 13, 2023 · 0 comments

Comments

@fajar7xx
Copy link

saat jalankan go run atau menjalankan executable go payment untuk windows tidak dapat berjalan dengan error

message : "error call ke mt"

2023/07/13 14:09:57 http: panic serving 127.0.0.1:58616: time: missing Location in call to Time.In goroutine 42 [running]: net/http.(*conn).serve.func1() /usr/local/go/src/net/http/server.go:1854 +0xbf panic({0x121dce0, 0x1434d00}) /usr/local/go/src/runtime/panic.go:890 +0x263 time.Time.In(...) /usr/local/go/src/time/time.go:1146 github.com/imrenagi/go-payment/gateway/midtrans/snap.(*builder).setExpiration(0xc0000ca1f0, 0xc0000a23c0) /home/rie_zel/jenkins/src/62-goldfish/gateway/midtrans/snap/builder.go:122 +0x2d1 github.com/imrenagi/go-payment/gateway/midtrans/snap.newBuilder(0xc0000a23c0) /home/rie_zel/jenkins/src/62-goldfish/gateway/midtrans/snap/builder.go:36 +0x2f1 github.com/imrenagi/go-payment/gateway/midtrans/snap.NewBCAVA(0xc00062c600?) /home/rie_zel/jenkins/src/62-goldfish/gateway/midtrans/snap/bca.go:10 +0x1d github.com/imrenagi/go-payment/gateway/midtrans.NewSnapFromInvoice(0x143c5c0?) /home/rie_zel/jenkins/src/62-goldfish/gateway/midtrans/facade.go:18 +0x99 github.com/imrenagi/go-payment/manage.midtransCharger.Create({0xc000638f40?}, {0x143e3d8?, 0xc00040a2a0?}, 0xc0000a23c0) /home/rie_zel/jenkins/src/62-goldfish/manage/charger.go:33 +0x3a5 github.com/imrenagi/go-payment/invoice.(*Invoice).CreateChargeRequest(0xc0000a23c0, {0x143e3d8?, 0xc00040a2a0?}, {0x143a8d8, 0xc0000ca1e8}) /home/rie_zel/jenkins/src/62-goldfish/invoice/invoice.go:197 +0x46 github.com/imrenagi/go-payment/manage.(*Manager).GenerateInvoice(0xc0000f4090, {0x143e3d8, 0xc00040a2a0}, 0xc000152000) /home/rie_zel/jenkins/src/62-goldfish/manage/manager.go:230 +0x11cf github.com/imrenagi/go-payment/server.Server.CreateInvoiceHandler.func1({0x143dd00, 0xc000628000}, 0xc000498300) /home/rie_zel/jenkins/src/62-goldfish/server/server.go:87 +0x114 net/http.HandlerFunc.ServeHTTP(0xc000498200?, {0x143dd00?, 0xc000628000?}, 0x26ae93a0301?) /usr/local/go/src/net/http/server.go:2122 +0x2f github.com/gorilla/mux.(*Router).ServeHTTP(0xc00010c300, {0x143dd00, 0xc000628000}, 0xc000498100) /home/rie_zel/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf github.com/rs/cors.(*Cors).Handler.func1({0x143dd00, 0xc000628000}, 0xc000498100) /home/rie_zel/go/pkg/mod/github.com/rs/[email protected]/cors.go:219 +0x1bd net/http.HandlerFunc.ServeHTTP(0x0?, {0x143dd00?, 0xc000628000?}, 0x10aa494?) /usr/local/go/src/net/http/server.go:2122 +0x2f net/http.serverHandler.ServeHTTP({0x143bd78?}, {0x143dd00, 0xc000628000}, 0xc000498100) /usr/local/go/src/net/http/server.go:2936 +0x316 net/http.(*conn).serve(0xc0000f4360, {0x143e3d8, 0xc000328420}) /usr/local/go/src/net/http/server.go:1995 +0x612 created by net/http.(*Server).Serve /usr/local/go/src/net/http/server.go:3089 +0x5ed

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

No branches or pull requests

1 participant