https://linen.dev logo
#help
Title
# help
b

Bogdan Korobka

12/12/2023, 7:38 AM
Hi evryone, I'm trying to send a request to wiremock and stream a webhook, but it doesn't work and nothing is visible in the logs. Who can tell me what could be the matter?
o

Oleg Nenashev

12/12/2023, 7:51 AM
Hello. Could you please share the version and the CLI arguments you use
b

Bogdan Korobka

12/12/2023, 7:53 AM
Sorry im find error, my mappings and file cached and returl old files(
how i disable cache?
o

Oleg Nenashev

12/12/2023, 7:56 AM
There is no cache per se. You can restart the instance, and it will reload the configuration files
b

Bogdan Korobka

12/12/2023, 7:57 AM
It is not comfortable
I have to restart the instance every time for the server to start returning the edited file to me
I try send webhook and get error
Copy code
Failed to fire webhook POST <https://unacashph.localhost/api/public/v1/allbank/postback>
2023-12-12T07:56:04.816340187Z wiremock.org.apache.hc.client5.http.HttpHostConnectException: Connect to <https://unacashph.localhost:443> [unacashph.localhost/127.0.0.1] failed: Connection refused (Connection refused)
service up in docker-compose + traefik How can I find out my backend address?
o

Oleg Nenashev

12/12/2023, 8:02 AM
I have to restart the instance every time for the server to start returning the edited file to me
There is a ticket for live reload somewhere, but you can do the same by a file monitor and the REST API call
service up in docker-compose + traefik. How can I find out my backend address?
If Traefik is in Docker compose, There is a service name you can use as a DNS reference
b

Bogdan Korobka

12/12/2023, 8:04 AM
Copy code
<https://unacashph.localhost:443>
not working
traefik in other docker-compose file
o

Oleg Nenashev

12/12/2023, 8:08 AM
Then it greatly depends on your environment, e.g. on where the Docker Engine runs and how it is implemented
Normally docker containers are in the same Docker Compose if they run as a system. You can also use a named Docker network
b

Bogdan Korobka

12/12/2023, 8:18 AM
I have macos m3, and colima docker engine
o

Oleg Nenashev

12/12/2023, 8:19 AM
As long as it is a single-instance one, I recommend using a Docker network https://docs.docker.com/compose/networking/#specify-custom-networks
b

Bogdan Korobka

12/12/2023, 8:21 AM
thank you for help 🙏 good day
o

Oleg Nenashev

12/12/2023, 8:35 AM
yw, and all the best with the setup! For the live reload, I can provide a PoC if you are interested. Maybe tomorrow, doing a Python deep dive 🙂