Skip to content
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

Fix outbound queue with webhook-url #86

Conversation

jamshale
Copy link
Contributor

@jamshale jamshale commented Feb 2, 2024

This fixes a bug where an empty header value was added to the outbound payload which caused the outbound transit to fail. Also, ignore webhook forwarding for messages which don't match the webhook event map.

Added a available dummy server to the integration test network and enabled the webhook url config in the integration tests.

I still don't understand why pushing an invalid outbound message into the queue is actually blocking/breaking the queue from continuing to work. This is a problem, as this small one line mistake, caused the invalid payload. I'll be trying to figure out how to prevent this, but this is still a fix/improvement for the current problem.

@jpnortherblock

@jamshale jamshale force-pushed the feat/82-redis-events-with-webhook-url branch from 5da47bf to d69c50f Compare February 2, 2024 21:05
Signed-off-by: jamshale <jamiehalebc@gmail.com>
@jamshale jamshale force-pushed the feat/82-redis-events-with-webhook-url branch from d69c50f to 40d88cd Compare February 2, 2024 21:22
event.topic)
endpoint = f"{endpoint}/topic/{webhook_topic}/"
headers = {"x-wallet-id": wallet_id} if wallet_id else {}
if not api_key:
Copy link
Contributor Author

@jamshale jamshale Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the main mistake... Not sure how it got missed.

@jamshale jamshale marked this pull request as ready for review February 2, 2024 21:24
@swcurran swcurran requested review from ianco and dbluhm February 3, 2024 00:19
@jamshale jamshale merged commit ffc54c5 into openwallet-foundation:main Feb 5, 2024
5 checks passed
@jamshale jamshale deleted the feat/82-redis-events-with-webhook-url branch April 15, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants