Skip to content

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

Closed
@0xlau

Description

@0xlau
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions