Developing webhooks using ngrok
In ngrok the call is shown but with a 307 Temporary Redirect:
OPTIONS /eventhandler 307 Temporary Redirect
This is what happens when I run it using IIS Express in Visual Studio. When I run it using the app's own container I do not get a temporary redirect but get the following result:
Thanks in advance.
Comments
-
Hey David, I know our internal devs at Blackbaud have used Ngrok successfully for testing webhooks but I don't know what the specific scenario is that could be giving you that error message.0
-
So I only get the 307 redirect when I use IIS Express. When I use .NET core's own self-contained server I don't get any message but Blackbaud returns the invalid HTTPS status code message. However it never reaches the code as far as I can see...0
-
@Ben Wong So I am picking this up again (after a number of years!) I thought that I had gotten it to work previously but apparently not. When I try and do the same thing as I described back in 2020 I get the same errors.
In my ngrok config I define it as follows:
authtoken: <my authtoken>
tunnels:
orgStack:
proto: http
hostname: myngrokinstance.ngrok.io
addr: localhost:5000
# -------------------------
# Additional options
# -------------------------
host_header: "localhost:5000"When I send through a subscribe I see that ngrok has received a call:
OPTIONS /api/tracker/eventhandler 307 Temporary Redirect
but I get the following back from Blackbaud:
{
"type": "urn:blackbaud:webhook-url-unreachable", "title": "One or more validation errors occurred.",
"status": 400, "detail": "We were unable to reach the specified webhook URL. Please check the URL and try again.",
"trace_id": "0290eb3094614c699d09509044bf8faf",
"span_id": "82bd80723460bada"
}If I call the same url using the OPTIONS method it does go into my VS2022 code.
Anybody get this to work?
0 -
I managed to fix this by changing the addr entry in the yaml file to
That way there is no redirect going on when calling my https:myngrokinstance.ngrok.com
1 -
@David Zeidman I had faith that Captain Webhook would find a way!
1
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 396 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 650 Blackbaud Grantmaking™
- 568 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 34 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 785 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

