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

Maestro Cloud throws "Illegal character in opaque part" error on Windows #2282

Open
1 task done
jerone opened this issue Feb 2, 2025 · 7 comments
Open
1 task done
Labels
bug Something isn't working host: windows maestro cli Related to the command-line Maestro tool

Comments

@jerone
Copy link

jerone commented Feb 2, 2025

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

  1. Run command maestro cloud --api-key=<redacted> --project-id=proj_01jk390460er9r1wy011jds0t8 sample.apk android-flow.yaml

Actual results

Evaluating workspace...

Uploading Flow(s)...
Illegal character in opaque part at index 11: jar:file:C:\Users\USERNAME~1\AppData\Local\Temp\586705760138976510\workspace.zip

The stack trace was:
java.lang.IllegalArgumentException: Illegal character in opaque part at index 11: jar:file:C:\Users\USERNAME~1\AppData\Local\Temp\586705760138976510\workspace.zip
        at java.base/java.net.URI.create(URI.java:906)
        at maestro.cli.util.WorkspaceUtils.createWorkspaceZip(WorkspaceUtils.kt:22)
        at maestro.cli.cloud.CloudInteractor.upload(CloudInteractor.kt:90)
        at maestro.cli.command.CloudCommand.call(CloudCommand.kt:199)
        at maestro.cli.command.CloudCommand.call(CloudCommand.kt:42)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
        at maestro.cli.DisableAnsiMixin$Companion.executionStrategy(DisableAnsiMixin.kt:22)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at maestro.cli.AppKt.main(App.kt:143)
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 11: jar:file:C:\Users\USERNAME~1\AppData\Local\Temp\586705760138976510\workspace.zip
        at java.base/java.net.URI$Parser.fail(URI.java:2976)
        at java.base/java.net.URI$Parser.checkChars(URI.java:3147)
        at java.base/java.net.URI$Parser.parse(URI.java:3183)
        at java.base/java.net.URI.<init>(URI.java:623)
        at java.base/java.net.URI.create(URI.java:904)
        ... 14 more

Folder 586705760138976510 does not exist in the temp folder.

Expected results

Maestro Cloud to work.

About environment

Android Studio Ladybug Feature Drop | 2024.2.2
Runtime version: 21.0.4+-12508038-b607.1 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0 Pro
openjdk 17.0.14 2025-01-21 LTS
OpenJDK Runtime Environment Microsoft-10800295 (build 17.0.14+7-LTS)
OpenJDK 64-Bit Server VM Microsoft-10800295 (build 17.0.14+7-LTS, mixed mode, sharing)

Maestro version

1.39.9

How did you install Maestro?

Per Windows instructions.

Copy link

linear bot commented Feb 2, 2025

@jerone jerone changed the title Maestro Cloud throws "Illegal character in opaque part" error Maestro Cloud throws "Illegal character in opaque part" error on Windows Feb 2, 2025
@bgabi9
Copy link

bgabi9 commented Feb 15, 2025

Any updates on this?

@toshiossada
Copy link

I got the same error

@ShimaaFayz22
Copy link

I have the same issue

@Fishbowler
Copy link
Contributor

To everyone saying "me too" - do you have any additional context?
Maestro versions, java versions, etc.
Would certainly help in narrowing down the issue

@toshiossada
Copy link

Image

Image
Windows 11 Pro

@toshiossada
Copy link

My environments

Image

@Fishbowler Fishbowler added bug Something isn't working maestro cli Related to the command-line Maestro tool host: windows labels Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working host: windows maestro cli Related to the command-line Maestro tool
Projects
None yet
Development

No branches or pull requests

5 participants