Getting exit code 23 in curl command run | Community
Skip to main content
New Participant
May 22, 2023
Solved

Getting exit code 23 in curl command run

  • May 22, 2023
  • 1 reply
  • 9943 views

Hi,
I have a cron job which executes curl command using java (ProcessBuilder class), but I'm getting Exit Code : 23 on running download command 

curl -u user_name:user_pwd https://<prod_url>/etc/packages/my_packages/myPackage.zip --output myPackage.zip

 FYI, I am trying to download the existed package(myPackage.zip) from PROD to DEV environment by running this command in DEV environment (We are using AEMaaCS environments). The same command will download the package from prod in my local server, but not in higher environments like DEV or STAGE.

Any help would be helpful
Thanks 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SivakumarKanoori

Hi @ahegde-1 

 

exit code 23 means , it got failed while writing output to destination. If you directly run the Curl command is it downloading properly . if yes then check the java code(If you are missing anything) as your invoking the curl command from the javacode.

 

Thanks,

Siva

1 reply

SivakumarKanoori
SivakumarKanooriAccepted solution
New Participant
May 24, 2023

Hi @ahegde-1 

 

exit code 23 means , it got failed while writing output to destination. If you directly run the Curl command is it downloading properly . if yes then check the java code(If you are missing anything) as your invoking the curl command from the javacode.

 

Thanks,

Siva

Thanks,Siva