Hey, quick question: Is it possible to combine pro...
# help
n
Hey, quick question: Is it possible to combine proxies and Callbacks?
Copy code
{
    "priority": 1,
    "request": {
        "method": "ANY",
        "url": "/someurl
    },
    "response": {
        "proxyBaseUrl": "<https://proxyurl/>",
    },
    "serveEventListeners": [
        {
            "name": "webhook_30sek",
            "parameters": {
                "method": "GET",
                "url": "localhost:8080/callback",
                "delay": {
                    "type": "fixed",
                    "milliseconds": 30000
                }
            }
        }	
	]
}
t
Yes, that should work just fine
n
Then I am doing something wrong. Because I get the following errors:
No per-stub listener was found named "webhook_30sek"
t
Ah, you need
webhook
in the
name
field as this identifies the extension to run
n
That means the "name" is not the actual name of the webhook but the type of eventListener?
t
Yes, correct.
👍 1