I haven’t see that error before but maybe @mtuchi knows something about it? Knowing what operating system you’re using would also be super helpful. Might be some setup issue, but you also could have found a bug with OpenFn/adaptors or OpenFn/kit.
Interesting. I’m honestly not 100% sure if anyone has built a Windows version of the CLI. I’ll ask around today and see if anyone else has bumped into this issue!
This looks like a problem with our Windows setup. We’re mostly Linux-based here and we really don’t get to test windows enough. I’ll look into that specific problem.
It looks like the CLI is crashing trying to set up a “repo” on your machine - this is just a folder the CLI will install adaptors into.
There are a few workarounds - this I think is the easiest:
Create a repo folder somewhere on your system (i:\openfn\repo would be fine, whatever suits you)
Set an environment variable OPENFN_REPO_DIR which contains a path to this folder (here’s some help for this)
You only have to do this once. When your repo is setup it should all just work.
PS C:\openfn> openfn getPosts.js -ia http
[CLI] Installing packages…
[CLI] Installed @openfn/language-http@4.3.3
[CLI] Installation complete in 31.65s
[CLI] Compiled from getPosts.js
[R/T] Starting job job-1
GET request succeeded with 200 ✓
[JOB] {“userId”:1,“id”:1,“title”:“sunt aut facere repellat provident occaecati excepturi optio reprehenderit”,“body”:“quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto”}
[R/T] Completed job job-1 in 936ms
[CLI] State written to output.json
[CLI] Finished in 32.779s
The I: drive was a google drive location. I thought It was not the most suitable for this case. Hence, I created the openfn folder in the C: drive, where Windows and all the programs are installed.
Glad it all worked! Keep us posted if you bump into any other Windows errors, please! Also, I’m sure you have this already but the repo for tracking issues and contributing to the CLI is over here: https://github.com/OpenFn/kit/tree/main/packages/cli
As we don’t have a ton of Windows users, we’d really appreciate your help making sure the Windows developer experience is good!