Skip to content

[bug] .chls import fails because Charles crashes when launched by Reqable #2936

Description

@JustAnotherCloudyDay

Importing a Charles .chls session directly into Reqable fails on Windows.

Reqable tries to launch Charles CLI to convert the .chls file to HAR, but Charles crashes with a NullPointerException.

The same Charles conversion command works correctly when executed manually in PowerShell, and the resulting HAR file opens successfully in Reqable.

Configured Charles directory:

C:\Program Files\Charles

Reqable log shows this command:

"C:\Program Files\Charles\Charles.exe" convert C:\Users\nikita\Downloads\HW4K2W66HRVM.chls C:\Users\nikita\Downloads\HW4K2W66HRVM.har

When Reqable runs it, Charles fails with:

SEVERE com.charlesproxy.main.Main Failed to start Charles
java.lang.NullPointerException
    at java.base/java.io.File.<init>(Unknown Source)
    at com.charlesproxy/com.charlesproxy.OZTL.uPPi(Unknown Source)
    at com.charlesproxy/com.charlesproxy.OZTL.IUux(Unknown Source)
    at com.charlesproxy/com.charlesproxy.CharlesContext.init(Unknown Source)
    at com.charlesproxy/com.charlesproxy.Main.IUux(Unknown Source)
    at com.charlesproxy/com.charlesproxy.main.Main.main(Unknown Source)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at com.charlesproxy/com.xk72.eTgW.edfX.IUux(Unknown Source)
    at com.charlesproxy/com.charlesproxy.main.MainWithClassLoader.main(Unknown Source)

Running the conversion manually in PowerShell works:

& "C:\Program Files\Charles\Charles.exe" convert C:\Users\nikita\Downloads\HW4K2W66HRVM.chls C:\Users\nikita\Downloads\reqable-test.har

The HAR file is created successfully and can be opened normally in Reqable.

The only warning shown during manual conversion is:

WARNING com.xk72.proxy.lib.ZstdUtils Cannot load zstd library: no zstd-jni-1.5.7-7 in java.library.path: .\lib

This warning does not prevent the conversion.

I also tried launching Reqable itself from PowerShell and importing the .chls file again, but the same NullPointerException occurs.

To Reproduce

  1. Install Charles on Windows.

  2. Configure the Charles application directory in Reqable as:

    C:\Program Files\Charles
    
  3. Open a valid .chls file in Reqable.

  4. Reqable tries to launch Charles for conversion.

  5. Charles crashes with Failed to start Charles and java.lang.NullPointerException.

  6. Run the same Charles.exe convert command manually in PowerShell.

  7. The conversion succeeds and produces a valid HAR file.

  8. Open the generated HAR file in Reqable.

  9. The HAR file opens successfully.

Expected behavior

Reqable should be able to launch Charles and convert the .chls file to HAR in the same way as when the command is executed manually.

The .chls session should open normally in Reqable.

Screenshots

Image

Information

  • Platform: Windows
  • OS: Windows 10
  • Arch: x86-64
  • App Version: 3.2.23
  • Charles directory: C:\Program Files\Charles

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingp0Priority processingwindowsWindows Platform

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions