ProxymanApp / ProxymanApp/Proxyman
Cant write a file with writeToFile function using scripting
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 7k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Description
Description
Steps to Reproduce
async function onResponse(context, url, request, response) {
writeToFile("~/proxyman_output/data", response.body);
return response;
}
Current Behavior
Although Full Disk Access is granted, an read-only file system error occurred.
Error: Export func: Error Domain=NSCocoaErrorDomain Code=642 "You can’t save the file “[object Object]” because the volume “Macintosh HD” is read only." UserInfo={NSFilePath=/[object Object], NSUserStringVariant=Folder, NSUnderlyingError=0x6000019d9fe0 {Error Domain=NSPOSIXErrorDomain Code=30 "Read-only file system"}}
Expected Behavior
Environment
- App version: e.g Proxyman 4.12.0
- macOS version: e.g macOS Sonoma
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the scripting entry point used by the onResponse example and the writeToFile function, then reproduce the call on macOS with the supplied response.body and path. Done means the script writes the response body to the requested location without the read-only filesystem or [object Object] path error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, macos
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100