Skip to content

[url_launcher] Provide better error message for SE_ERR_NOASSOC (code 31) #138142

@KristijanMitrik

Description

@KristijanMitrik

Is there an existing issue for this?

What package does this bug report belong to?

url_launcher

What target platforms are you seeing this bug on?

Windows

Have you already upgraded your packages?

Yes

Dependency versions

pubspec.lock
[Paste file content here]

Steps to reproduce

  1. launchUrl(
    Uri.parse('URL'),
    mode: LaunchMode.externalNonBrowserApplication,
    ),

Expected results

Launching the url

Actual results

PlatformException: PlatformException(open_error, Failed to open "URL HERE" ShellExecute error code 31, null, null)

Code sample

Code sample
[Paste your code here]

launchUrl(
Uri.parse('URL'),
),

Screenshots or Videos

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Labels

a: desktopRunning on desktopp: url_launcherPlugin to launch external applicationspackageflutter/packages repository. See also p: labels.platform-windowsBuilding on or for Windows specificallyteam-windowsOwned by the Windows platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions