Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Test post-requests.http throw a FileNotFoundException #62

Open
npeters opened this issue Dec 22, 2020 · 0 comments
Open

Test post-requests.http throw a FileNotFoundException #62

npeters opened this issue Dec 22, 2020 · 0 comments

Comments

@npeters
Copy link
Contributor

npeters commented Dec 22, 2020

`
HTTP REQUEST FILE: /Users/npeters/workspaces/github/restcli/build/resources/test/requests/post-requests.http
Can't parse /Users/npeters/workspaces/github/restcli/build/resources/test/requests/post-requests.http
java.io.FileNotFoundException: ./request-form-data.json (No such file or directory)
at java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.io.FileInputStream.open(FileInputStream.java:219) ~[?:?]
at java.io.FileInputStream.(FileInputStream.java:157) ~[?:?]
at kotlin.io.FilesKt__FileReadWriteKt.readText(FileReadWrite.kt:125) ~[kotlin-stdlib-1.4.0.jar:1.4.0-release-329 (1.4.0)]
at kotlin.io.FilesKt__FileReadWriteKt.readText$default(FileReadWrite.kt:125) ~[kotlin-stdlib-1.4.0.jar:1.4.0-release-329 (1.4.0)]
at uos.dev.restcli.parser.Parser.parse(Parser.kt:64) ~[main/:?]
at uos.dev.restcli.HttpRequestFilesExecutor.executeHttpRequestFile(HttpRequestFilesExecutor.kt:73) ~[main/:?]
at uos.dev.restcli.HttpRequestFilesExecutor.run(HttpRequestFilesExecutor.kt:46) ~[main/:?]
at uos.dev.restcli.RestCli.call(RestCli.kt:88) ~[main/:?]

`
The application use current dir as a basedir.
It should used the request file's directory as a basedir.

npeters added a commit to npeters/restcli that referenced this issue Dec 22, 2020
quangson91 added a commit that referenced this issue Dec 28, 2020
#62 load the data file with the basedir of the request file
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant