-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve HTTP Poller source log output #1296
Comments
The adapter seems to work as expected. If the polling endpoint is down a log entry is written for each poll iteration:
If the sink is down a log line is written for each lost event:
|
I think that you folks are on different pages - @jmcx |
@tzununbekov I'm talking about log output, not in tmctl. @odacremolbap I'll do a little video of the bug. |
@jmcx is this still valid ? |
@jmcx to video the issue |
This was the original video I made: https://www.loom.com/share/84be1453844f4b70b78a1ea168836cf4. Maybe there is some subtlety in there, but the fact that there are no error logs, and that it doesn't start working again after restarting the HTTP service, seems to indicate an issue somewhere... |
The HTTP Poller source doesn't produce any logs when it is failing to get a response from its target HTTP service.
I can reproduce this by making a local server available, e.g.:
python3 -m http.server 8000
Then creating an HTTP Poller source that hits this server (replace the
host.docker.internal
hostname by whatever works on your env, possiblylocalhost
):tmctl create source httppoller --name ordersorderjson-httppollersource --method GET --endpoint http://host.docker.internal:8000 --interval 10s --eventType io.triggermesh.httppoller.event
I see events every 10s in
tmctl watch
.Now if I stop the python HTTP server, I stop getting events, but HTTP poller doesn't show any logs.
The text was updated successfully, but these errors were encountered: