I'm creating a blank issue since I'm not sure which issue type I should select when I want to report the wrong content which is not a typo.
While following the steps in "Tutorial: Dapr Microservices", the application outputs the following error log and the browser shows "ERR_CONNECTION_REFUSED" when visiting the endpoint (http://localhost:8080) in "Step 6. Test your application".
frontend-7f8db677c7-5kd84 frontend [port-forward] connected from localhost:8080 -> ::8080
frontend-7f8db677c7-5kd84 frontend [port-forward] connected from localhost:3500 -> ::3500
frontend-7f8db677c7-5kd84 frontend [port-forward] connected from localhost:50001 -> ::50001
frontend-7f8db677c7-5kd84 frontend [port-forward] connected from localhost:50002 -> ::50002
frontend-7f8db677c7-5kd84 frontend [port-forward] connected from localhost:9090 -> ::9090
backend-646b85f8f-zltfp backend [port-forward] connected from localhost:9090 -> ::9090
backend-646b85f8f-zltfp backend [port-forward] connected from localhost:3000 -> ::3000
backend-646b85f8f-zltfp backend [port-forward] connected from localhost:3500 -> ::3500
backend-646b85f8f-zltfp backend [port-forward] connected from localhost:50001 -> ::50001
backend-646b85f8f-zltfp backend [port-forward] connected from localhost:50002 -> ::50002
E1030 20:10:23.755860 12884 portforward.go:409] an error occurred forwarding 8080 -> 8080: error forwarding port 8080 to pod 1a188b84ed22330a8591e40e1460b0fd72c0f499833b7c73aa8f62e0e5415617, uid : failed to execute portforward in network namespace "/var/run/netns/cni-fcc48644-d9cd-c22c-fc0f-2ca52eb3c5a3": failed to connect to localhost:8080 inside namespace "1a188b84ed22330a8591e40e1460b0fd72c0f499833b7c73aa8f62e0e5415617", IPv4: dial tcp4 127.0.0.1:8080: connect: connection refused IPv6 dial tcp6: address localhost: no suitable address found
Compared with the definition in the sample repository, it seems the container port should be 80.
After changing the value from 8080 to 80, I can see the endpoint of the Dapr app by visiting http://localhost:80 .
backend-646b85f8f-qrr6j backend [port-forward] connected from localhost:3000 -> ::3000
backend-646b85f8f-qrr6j backend [port-forward] connected from localhost:3500 -> ::3500
backend-646b85f8f-qrr6j backend [port-forward] connected from localhost:50001 -> ::50001
backend-646b85f8f-qrr6j backend [port-forward] connected from localhost:50002 -> ::50002
backend-646b85f8f-qrr6j backend [port-forward] connected from localhost:9090 -> ::9090
frontend-748d7865df-74nb6 frontend [port-forward] connected from localhost:50001 -> ::50001
frontend-748d7865df-74nb6 frontend [port-forward] connected from localhost:50002 -> ::50002
frontend-748d7865df-74nb6 frontend [port-forward] connected from localhost:9090 -> ::9090
frontend-748d7865df-74nb6 frontend [port-forward] connected from localhost:80 -> ::80
frontend-748d7865df-74nb6 frontend [port-forward] connected from localhost:3500 -> ::3500
backend-646b85f8f-qrr6j backend Got a new order! Order ID: 81e48920-c6ac-4a0a-a23b-0404383e327e
backend-646b85f8f-qrr6j backend Successfully persisted state.
AB#9971
I'm creating a blank issue since I'm not sure which issue type I should select when I want to report the wrong content which is not a typo.
While following the steps in "Tutorial: Dapr Microservices", the application outputs the following error log and the browser shows "ERR_CONNECTION_REFUSED" when visiting the endpoint (http://localhost:8080) in "Step 6. Test your application".
Compared with the definition in the sample repository, it seems the container port should be 80.
After changing the value from 8080 to 80, I can see the endpoint of the Dapr app by visiting http://localhost:80 .
AB#9971