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 Panics with improper Cloudflare Setups #387
Comments
@tallowen Do you have a |
@markhker - thanks, setting that env variable did indeed fix it! |
I had a slightly similar issue with Remix + Cloudflare (exposed Go error). Logs: sst deploy --verbose
time=2024-05-08T10:41:19.080-03:00 level=INFO msg="checking for pulumi" path="/Users/ruan/Library/Application Support/sst/bin/pulumi"
time=2024-05-08T10:41:19.390-03:00 level=INFO msg="checking for bun" path="/Users/ruan/Library/Application Support/sst/bin/bun"
time=2024-05-08T10:41:19.407-03:00 level=INFO msg="initializing project" version=0.0.355
time=2024-05-08T10:41:19.407-03:00 level=INFO msg="esbuild building"
time=2024-05-08T10:41:19.409-03:00 level=INFO msg="esbuild built" outfile=/Users/ruan/Desktop/sst-rmx/.sst/eval/eval-1715175679407.mjs
time=2024-05-08T10:41:19.409-03:00 level=INFO msg="evaluating config"
time=2024-05-08T10:41:19.518-03:00 level=INFO msg="config evaluated"
time=2024-05-08T10:41:19.519-03:00 level=INFO msg="checking platform"
panic: interface conversion: interface {} is nil, not map[string]interface {}
goroutine 1 [running]:
github.com/sst/ion/pkg/project.(*Project).NeedsInstall(0x140000fc600)
/home/runner/work/ion/ion/pkg/project/install.go:25 +0x29c
main.initProject(0x140006d20f0)
/home/runner/work/ion/ion/cmd/sst/main.go:1591 +0x574
main.init.func3(0x140006d20f0)
/home/runner/work/ion/ion/cmd/sst/main.go:435 +0x38
main.run()
/home/runner/work/ion/ion/cmd/sst/main.go:159 +0x6cc
main.main()
/home/runner/work/ion/ion/cmd/sst/main.go:51 +0x12c sst.config.ts: export default $config({
app(input) {
return {
name: "sst-remix",
removal: input?.stage === "production" ? "retain" : "remove",
home: "cloudflare",
};
},
async run() {
new sst.cloudflare.Remix("MyWeb");
},
}); The issue is that I didn't install the Cloudflare provider (obvious I know, but I'm new to SST and the docs don't mention that). Only the AWS provider is installed by default on
|
is this still an issue in the latest sst? thought i handled the case when there's no account id able to be inferred |
@thdxr - should version 0.0.354 have the fix? That version (I believe from yesterday) does have at least the issue when |
I'm getting a slightly different error, not sure if it is related to this or not. I cloned the ion repo and tried running the cloudflare-remix example, added a Error:
Verbose logs
Hopefully that is helpful information. |
It seems like there are a couple of issues that can lead to go panics:
sst add cloudflare
CLOUDFLARE_DEFAULT_ACCOUNT_ID
It would be great if the sst cli would output an error message for these. Especially issue 2 on the above list since it's currently not documented.
--- Original Issue Below ---
I'm trying to deploy the default remix app using a custom domain hosted using cloudflare dns. (Now using v0.0.354 everything deploys properly when I don't cloudflare, thanks for addressing #386 !)
My sst.config.ts
Using sst version 0.0.354:
I'm using:
The text was updated successfully, but these errors were encountered: