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

Open
0xlau opened this issue Nov 9, 2024 · 0 comments

Comments

@0xlau
Copy link

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/[email protected]+incompatible/actions.go:28
github.com/alecthomas/kingpin.(*Application).applyActions
	/Users/runner/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:557
github.com/alecthomas/kingpin.(*Application).execute
	/Users/runner/go/pkg/mod/github.com/alecthomas/[email protected]+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/[email protected]+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

No branches or pull requests

1 participant