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

Problem to save files #16

Open
linux-china opened this issue Oct 11, 2022 · 1 comment
Open

Problem to save files #16

linux-china opened this issue Oct 11, 2022 · 1 comment

Comments

@linux-china
Copy link
Collaborator

@ssokolov1 is running a command in testing directory where file test-api-retention.http is located and there is a subfolder resources

httpx -f rest-api-retention.http -p docker -a

### Download random logo to use as attachment to the file
GET {{logo}}

>>! resources/logo.png

2022-10-10 11:04:07.103 ERROR 29167 --- [ main] org.mvnsearch.http.HttpxCommand : HTX-002-500 - Failed to parse http code!

java.nio.file.FileSystemException: rest-api-retention.http/resources/logo.png: Not a directory
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218) ~[httpx:na]

Here is the problem. It is trying to append script name to the current path, what is wrong in my opinion as rest-api-retention.http is a file, not a directory. IntelliJ internal runner handles it correctly. I can create a new issue if it helps.
And one more time, thank you for your great work.

@linux-china
Copy link
Collaborator Author

@ssokolov1 I commented logic to write response body to file because quarantine check by Mac. The feature to write response body to file is not available now.

//disable response written to file because of security

image

2022-10-10 11:04:07.103 ERROR 29167 --- [ main] org.mvnsearch.http.HttpxCommand : HTX-002-500 - Failed to parse http code!

I think it was caused by http file format because failed to parse http code. Could you move following code to another http file and test it again?

### Download random logo to use as attachment to the file
GET {{logo}}

>>! resources/logo.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant