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

panic: runtime error: invalid memory address or nil pointer dereference #983

Open
imgagandeep opened this issue Oct 6, 2022 · 0 comments

Comments

@imgagandeep
Copy link

imgagandeep commented Oct 6, 2022

when try to run command theme watch, a panic: runtime error: invalid memory address or nil pointer dereference error is thrown.

Here is the full error:

[development] Proxy URL detected from Configuration [http://localhost:3000] SSL Certificate Validation will be disabled!
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x85fc29]

goroutine 1 [running]:
github.com/Shopify/themekit/src/httpify.(*HTTPClient).doWithRetry(0xc0001d6b80, 0xc0001e0f00, 0x0, 0x0, 0x1, 0xc00024daf0, 0x0)
/Users/andyw8/src/github.com/Shopify/themekit/src/httpify/client.go:130 +0x109
github.com/Shopify/themekit/src/httpify.(*HTTPClient).do(0xc0001d6b80, 0x9841e3, 0x3, 0x9864ce, 0xa, 0x0, 0x0, 0x0, 0x0, 0xc000254f80, ...)
/Users/andyw8/src/github.com/Shopify/themekit/src/httpify/client.go:105 +0x5d8
github.com/Shopify/themekit/src/httpify.(*HTTPClient).Get(0xc0001d6b80, 0x9864ce, 0xa, 0x0, 0x1f, 0xde0040, 0xd)
/Users/andyw8/src/github.com/Shopify/themekit/src/httpify/client.go:70 +0x74
github.com/Shopify/themekit/src/shopify.Client.GetShop(0xc0002585f0, 0xc, 0xc000255080, 0x1f, 0xde0040, 0xd, 0xd, 0xdfcb20, 0x0, 0x0, ...)
/Users/andyw8/src/github.com/Shopify/themekit/src/shopify/theme_client.go:128 +0x8f
github.com/Shopify/themekit/src/cmdutil.createCtx(0x9aa960, 0xc000290300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/andyw8/src/github.com/Shopify/themekit/src/cmdutil/util.go:96 +0xf3
github.com/Shopify/themekit/src/cmdutil.generateContexts(0x9aa960, 0xc00028e260, 0xc0001de030, 0x29, 0x0, 0x0, 0xc0001c6050, 0x1, 0x1, 0x0, ...)
/Users/andyw8/src/github.com/Shopify/themekit/src/cmdutil/util.go:218 +0x496
github.com/Shopify/themekit/src/cmdutil.forEachClient(0x9aa960, 0xc0001de030, 0x29, 0x0, 0x0, 0xc0001c6050, 0x1, 0x1, 0x0, 0x0, ...)
/Users/andyw8/src/github.com/Shopify/themekit/src/cmdutil/util.go:281 +0xf4
github.com/Shopify/themekit/src/cmdutil.ForEachClient(...)
/Users/andyw8/src/github.com/Shopify/themekit/src/cmdutil/util.go:276
github.com/Shopify/themekit/cmd.glob..func12(0xdd8f00, 0xdfcdc8, 0x0, 0x0, 0x0, 0x0)
/Users/andyw8/src/github.com/Shopify/themekit/cmd/watch.go:36 +0xe7
github.com/spf13/cobra.(*Command).execute(0xdd8f00, 0xdfcdc8, 0x0, 0x0, 0xdd8f00, 0xdfcdc8)
/Users/andyw8/go/pkg/mod/github.com/spf13/[email protected]/command.go:762 +0x46c
github.com/spf13/cobra.(*Command).ExecuteC(0xdd87e0, 0x13, 0x0, 0x0)
/Users/andyw8/go/pkg/mod/github.com/spf13/[email protected]/command.go:852 +0x2f3
github.com/spf13/cobra.(*Command).Execute(...)
/Users/andyw8/go/pkg/mod/github.com/spf13/[email protected]/command.go:800
main.main()
/Users/andyw8/src/github.com/Shopify/themekit/cmd/theme/main.go:29 +0x68

Let me know if there is any additional info I can provide, and I'll share anything else I come across.

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