Replies: 4 comments 18 replies
-
I’m not sure I understand what you are trying to do. ParseServerSwift connects directly to your node Parse Server, your apps should not attempt to connect to ParseServerSwift directly, instead, your app should connect to your node Parse Server as it normally would. The Node JS server will forward Requests to ParseServerSwift when needed and let it handle cloud code function and trigger requests. This functions exactly how JS Cloud Code functions. |
Beta Was this translation helpful? Give feedback.
-
Thats what i figured. But for some reason I can't get my app to connect to the parseserverswift cloud function or maybe im not understanding the error im getting. The econnrefused error I get means i have a configuration problem maybe? error: ParseError code=141 error=connect ECONNREFUSED 127.0.0.1:8081 |
Beta Was this translation helpful? Give feedback.
-
Your app should never connect to ParseServerSwift. ParseServerSwift should connect to your NodeJS ParseServer. Then your app should connect to your nodeJS Parse Server. Details about configuring are here: https://github.com/netreconlab/parse-server-swift#configure-parseserverswift-to-connect-to-your-parse-servers |
Beta Was this translation helpful? Give feedback.
-
Sidenote: you can create a simple CloudCode function (similar to the HelloWorld example) to return |
Beta Was this translation helpful? Give feedback.
-
So I have an existing iOS project which I'm trying to run Tests on the new parse-server-swift docker setup I have running.
Everything seems to be ok with the Docker setup but when I run the Test on XCode, I get an error
error: ParseError code=141 error=connect ECONNREFUSED 127.0.0.1:8081
My setup is
/projects/MyProject
/projects/parse-server-swift
I've also set MyProject working directory to parse-server-swift trying to get it to connect.
When I access the url via localhost:8081/hello , the code works fine and I get a string back as expected.
What am I missing? Do I need to add a configuration somewhere that changes 127.0.0.1 to something else?
Full error
Tests
Having a headache trying to figure it out on my own.
Beta Was this translation helpful? Give feedback.
All reactions