title: Argo artifacts gives error "http: server gave HTTP response to HTTPS client"
body: <p>I was setting up Argo in my k8s cluster in Argo namespace.</p>
  <p>I also Installed MinIO as an Artifact repository (<a href="https://github.com/argoproj/argo-workflows/blob/master/docs/configure-artifact-repository.md" rel="nofollow noreferrer">https://github.com/argoproj/argo-workflows/blob/master/docs/configure-artifact-repository.md</a>).</p>
  <p>I am configuring a workflow which tries to access that Non-Default Artifact Repository as:</p>
  <pre><code>apiVersion: argoproj.io/v1alpha1
  kind: Workflow
  metadata:
    generateName: artifact-passing-
  spec:
    entrypoint: artifact-example
    templates:
    - name: artifact-example
      steps:
      - - name: generate-artifact
          template: whalesay
      - - name: consume-artifact
          template: print-message
          arguments:
            artifacts:
            # bind message to the hello-art artifact
            # generated by the generate-artifact step
            - name: message
              from: &quot;{{steps.generate-artifact.outputs.artifacts.hello-art}}&quot;
  
    - name: whalesay
      container:
        image: docker/whalesay:latest
        command: [sh, -c]
        args: [&quot;cowsay hello world | tee /tmp/hello_world.txt&quot;]
      outputs:
        artifacts:
        # generate hello-art artifact from /tmp/hello_world.txt
        # artifacts can be directories as well as files
        - name: hello-art
          path: /tmp/hello_world.txt
          s3:
            endpoint: argo-artifacts-minio.argo:9000
            bucket: my-bucket
            key: /my-output-artifact.tgz
            accessKeySecret:
              name: argo-artifacts-minio
              key: accesskey
            secretKeySecret:
              name: argo-artifacts-minio
              key: secretkey
  
    - name: print-message
      inputs:
        artifacts:
        # unpack the message input artifact
        # and put it at /tmp/message
        - name: message
          path: /tmp/message
          s3:
            endpoint: argo-artifacts-minio.argo:9000 
            bucket: my-bucket
            accessKeySecret:
              name: argo-artifacts-minio
              key: accesskey
            secretKeySecret:
              name: argo-artifacts-minio
              key: secretkey
      container:
        image: alpine:latest
        command: [sh, -c]
        args: [&quot;cat /tmp/message&quot;]
  </code></pre>
  <p>I created the workflow in argo namespace by:</p>
  <pre><code>argo submit --watch artifact-passing-nondefault-new.yaml -n argo
  </code></pre>
  <p>But the workflow fails with an error:</p>
  <pre><code>STEP                       PODNAME                           DURATION  MESSAGE
  
   ✖ artifact-passing-z9g64                                              child 'artifact-passing-z9g64-150231068' failed
   └---⚠ generate-artifact   artifact-passing-z9g64-150231068  12s       failed to save outputs: Get https://argo-artifacts-minio.argo:9000/my-bucket/?location=: http: server gave HTTP response to HTTPS client
  </code></pre>
  <p>Can someone help me to solve this error?</p>