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

[electron-publish] SecondLevelDomainForbidden: Please use virtual hosted style to access #8674

Closed
0xlau opened this issue Nov 9, 2024 · 0 comments · Fixed by #8741
Closed

Comments

@0xlau
Copy link
Contributor

0xlau commented Nov 9, 2024

  • Electron-Builder Version: 25.1.8
  • Node Version: 20.10.0
  • Electron Version: 31.0.2
  • Electron Type (current, beta, nightly): current
  • Target: MacOS arm64/x64, Windows x64

I use alioss as s3-provider for publishing

⨯ SecondLevelDomainForbidden: Please use virtual hosted style to access.
	status code: 403, request id: 672F8365A8317D3434CC276F, host id: 
github.com/develar/app-builder/pkg/publisher.upload
	/Users/runner/work/app-builder/app-builder/pkg/publisher/s3.go:169
github.com/develar/app-builder/pkg/publisher.ConfigurePublishToS3Command.func1
	/Users/runner/work/app-builder/app-builder/pkg/publisher/s3.go:57
github.com/alecthomas/kingpin.(*actionMixin).applyActions
	/Users/runner/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/actions.go:28
github.com/alecthomas/kingpin.(*Application).applyActions
	/Users/runner/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:557
github.com/alecthomas/kingpin.(*Application).execute
	/Users/runner/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:3[90](https://github.com/yuanze-dev/baigua-offer-electron/actions/runs/11757467784/job/32754753149#step:10:91)
github.com/alecthomas/kingpin.(*Application).Parse
	/Users/runner/go/pkg/mod/github.com/alecthomas/kingpin@v2.2.6+incompatible/app.go:222
main.main
	/Users/runner/work/app-builder/app-builder/main.go:90
runtime.main
	/Users/runner/hostedtoolcache/go/1.21.13/arm64/src/runtime/proc.go:267
runtime.goexit
	/Users/runner/hostedtoolcache/go/1.21.13/arm64/src/runtime/asm_amd64.s:1650

The above error is reported because the alioss only supports virtual-hosted-style-access. Docs

https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#virtual-hosted-style-access

How can I select a option to using virtual-hosted-style-access for electron-publish? Like .forcePathStyle

Something useful:
rclone/rclone#2401

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

Successfully merging a pull request may close this issue.

1 participant