#UGS CLI Error Codes
1 messages · Page 1 of 1 (latest)
The CLI should return 0 for success, 1 for failure, and 2 for an unhandled exception, we'll be updating our docs to reflect this
So in practice any non-zero return value means you'll likely want to abort
thanks!
And what could be the reason for 0 return code + "No content deployed" message? Like it's successful, but it refuses to deploy
Had to ask someone on the team about that one... here's the response:
it means it didn't find any configuration to deploy...
for example:
ugs deploy <folder-with-economy-files> --services cloud-code-scripts
assuming the folder used above only has economy files it would return "No content deployed" bc it has been filtered to only deploy cloud code scripts
if it found any config to deploy, even if it had no change it would return as "updated" + 0 exit code
I see, thank you
@prisma mortar omg, after the whole weekend I finally found the reason why I got "No content deployed".
It's not a reason you mentioned above, is it a bug?
I use MongoDB C# Driver in my Cloud Code Module (added via Nuget).
After I build my module, MongoDB produces a file called "libmongocrypt.so".
When I manually deleted this file before archiving the build, deployments started to work again.
What should I do to make MongoDB work with the Cloud Code Module?
Hey @warped marsh, what version of the CLI are you using? Got some folks trying to figure out what's going on
Hey! UGS CLI: 1.2.0
We're having trouble reproducing, would it be possible to get a minimal version of the code that reproduces the behavior?
Sorry, just noticed your message, yes, give me a second, I'll provide
https://drive.google.com/file/d/13cpYVLsU8bJJXjsBJDsCctrMe8o2L0Ep/view?usp=sharing
Here it is.
Just build it and try to deploy.
(I deploy on MacOS by the way)
Thanks!
Hey! Any news? Have you been able to reproduce the error?
We've got your code but haven't had a chance to poke around just yet, I'll keep you posted
Hi! I'm wondering if you ever managed to make MongoDB work with cloud code module, I'm having a little trouble deploying it too
Hi, unfortunately they don't support MongoDB, I asked them whether it is on their roadmap via support, they didn't reply.
I migrated to Google Cloud Functions 😄 MongoDB worked fine there.