I am testing plugins/webhook locally using drone exec, trying to test on the local endpoint which is running on http://localhost:5001/endpoint
drone yaml:
Tried to set the network mode to host but still not working.
After using command “drone exec --trusted” i am getting error: Failed to execute the HTTP request. Post http://localhost:5001/endpoint/: dial tcp [::1]:5001: connect: connection refused. Am I missing something?
localhost refers to the network inside the container, so it is expected that localhost cannot be used to connect to an address outside of the container.