Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to curl Google Chat webhook for docker image version 8.4.0 #42

Closed
KHTee opened this issue Oct 13, 2023 · 7 comments
Closed

Unable to curl Google Chat webhook for docker image version 8.4.0 #42

KHTee opened this issue Oct 13, 2023 · 7 comments

Comments

@KHTee
Copy link

KHTee commented Oct 13, 2023

Received error when curl to chat.googleapis.com. It works for docker image version 8.3.0

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to chat.googleapis.com port 443 after 26 ms: Couldn't connect to server
time="2023-10-13T01:04:23.000Z" level=info msg="sub-process exited" argo=true error="<nil>"
Error: exit status 7
@dfandrich
Copy link

dfandrich commented Oct 13, 2023 via email

@KHTee
Copy link
Author

KHTee commented Oct 13, 2023

I'm running as a container in k8s pod. This is the hash for the image it pulls with latest tag

container:
  image: curlimages/curl:latest
  imageID: >-
    docker-pullable://curlimages/curl@sha256:4a3396ae573c44932d06ba33f8696db4429c419da87cbdc82965ee96a37dd0af
  command:
    - sh
    - '-c'
  args:
    - >-
      curl -H 'Content-Type: application/json' -X POST
      '{{inputs.parameters.webhook}}' -d '{"text":
      "{{inputs.parameters.message}}"}'

@dfandrich
Copy link

dfandrich commented Oct 13, 2023 via email

@KHTee
Copy link
Author

KHTee commented Oct 13, 2023

no, the same configuration can work when I specify image tag 8.3.0.

@dfandrich
Copy link

I'm struggling to think of a reason 8.4.0 isn't working in that case when no-one else has reported a problem with the Docker image. Are the two versions using the same IP addresses? Try using the -v option to log the IP address and compare them. There were some Happy Eyeballs changes in this version, so maybe it's using IPv6 now and failing or something.

@xquery
Copy link
Member

xquery commented Oct 13, 2023

it would be useful if we can confirm this is a problem with curl rather then something specific to the curl container itself.

@KHTee
Copy link
Author

KHTee commented Oct 14, 2023

Perhaps this issue is coming from my environment setup. I can't reproduce this issue when running in a fresh environment. Thanks for helping.

@KHTee KHTee closed this as completed Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants