Stripe CLI keep throws i/o timeout ERROR on post
Closed this issue · 4 comments
2024-03-13 15:22:26 bus-stripe-1 | 2024-03-13 12:22:26 --> charge.succeeded [evt_3OtqpBGwjXKy93pL0RHur6Iw]
2024-03-13 15:22:33 bus-stripe-1 | 2024-03-13 12:22:33 [ERROR] Failed to POST: Post "http://web:80/api/stripe/webhook": dial tcp: lookup web on 192.168.65.7:53: read udp 192.168.65.6:41191->192.168.65.7:53: i/o timeout
2024-03-13 15:22:33 bus-stripe-1 |
2024-03-13 15:22:33 bus-stripe-1 | 2024-03-13 12:22:33 [ERROR] Failed to POST: Post "http://web:80/api/stripe/webhook": dial tcp: lookup web on 192.168.65.7:53: read udp 192.168.65.6:41191->192.168.65.7:53: i/o timeout
2024-03-13 15:22:33 bus-stripe-1 |
2024-03-13 15:22:33 bus-stripe-1 | 2024-03-13 12:22:33 [ERROR] Failed to POST: Post "http://web:80/api/stripe/webhook": dial tcp: lookup web on 192.168.65.7:53: read udp 192.168.65.6:41191->192.168.65.7:53: i/o timeout
2024-03-13 15:22:33 bus-stripe-1 |
2024-03-13 15:22:33 bus-stripe-1 | 2024-03-13 12:22:33 [ERROR] Failed to POST: Post "http://web:80/api/stripe/webhook": dial tcp: lookup web on 192.168.65.7:53: read udp 192.168.65.6:41191->192.168.65.7:53: i/o timeout
Stripe CLI on my docker container keeps giving me this error.
i dont know why i think something wrong with docker-composer stripe : command
heree is my docker-compose:
version: '3'
services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:80"
volumes:
- .:/var/www/html
depends_on:
- mysql
stripe:
image: "stripe/stripe-cli:latest"
network_mode: host
command:
listen --forward-to web:80/api/stripe/webhook
how can i fix this error. what will i need to change ?
Hey @kubicix! Are you always getting this error? It seems like the CLI can't communicate with your endpoint or the endpoint is taking too long to respond.
Hey @kubicix! Are you always getting this error? It seems like the CLI can't communicate with your endpoint or the endpoint is taking too long to respond.
yeah i tried so many ways but i couldnt figure it out . probably stripe doesn't let me use cli because it was test version. It gave me authentication links in cli console on docker i authorized it but it didnt work ,thanks anyway
Oh I missed that you were running through Docker, sorry about that. For Docker you probably want to run stripe login --interactive
or pass in the API key through the command itself from environment variables, like --listen --api-key=$STRIPE_API_KEY <other flags>
.
The normal login might not won't work well through Docker.
Oh I missed that you were running through Docker, sorry about that. For Docker you probably want to run
stripe login --interactive
or pass in the API key through the command itself from environment variables, like--listen --api-key=$STRIPE_API_KEY <other flags>
.The normal login might not won't work well through Docker.
thanks tho , i will consider it on my upcoming projects.As you said probably something wrong with stripe authentication