Executing curl return code 2


#1

Good day everyone.

When I try to execute this config

notify:
    machine: true
    environment:
          EXECUTING_STRING: "curl --request POST --user email:token --header 'Accept: application/json' --header 'Content-Type: application/json' --data ' { \"transition\": { \"id\": \"61\" } }' --url 'https://rosberry.atlassian.net/rest/api/2/issue/TRIP-237/transitions'"

    steps:
      - run:
          name: notify
          command: bash -c $EXECUTING_STRING

I have a error

curl: try ‘curl --help’ or ‘curl --manual’ for more information Exited with code 2

But when I execute this script in terminal all work is fine.

What is can be wrong?


#2

Im seeing a similar issue as well intermittently. I upgrade Yarn on the CircleCI docker image during the build (I should be creating a new docker image based on the CircleCI image…), I run this

curl -o- -L https://yarnpkg.com/install.sh | bash

And once in a while it fails with the same exit code 2. Im using workflows.


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.