René's URL Explorer Experiment


Title: fix(webhooks): read every Ashby error shape when webhook registration fails by mzxchandra · Pull Request #6711 · simstudioai/sim · GitHub

Open Graph Title: fix(webhooks): read every Ashby error shape when webhook registration fails by mzxchandra · Pull Request #6711 · simstudioai/sim

X Title: fix(webhooks): read every Ashby error shape when webhook registration fails by mzxchandra · Pull Request #6711 · simstudioai/sim

Description: Summary Follow-up to #6703, found while testing the Ashby webhook triggers end to end against a real organization. The webhook provider read errorInfo.message and a top-level message, but not the errors array. Ashby uses three error shapes in practice, all confirmed live: Shape Observed on errors: [{ message, parameter }] missing module permission errors: ["webhook_not_found"] webhook.delete on an unknown id errorInfo: { code, message, requestId } returned alongside the array A key missing apiKeysWrite fails in the array form, so registering a trigger showed "Unknown Ashby API error" instead of the actual cause. The duplicate-webhook branch made that worse. It only fires when the message was successfully extracted: } else if (/duplicate webhook/i.test(errorMessage)) { So an unparsed error also cost the user the one actionable instruction for recovering — delete the duplicate under Ashby Settings > API/Webhooks — and they got a generic failure instead. Approach Uses the shared ashbyErrorMessage extractor from @/tools/ashby/utils rather than keeping a second partial copy in the provider. That helper already handles all three shapes and is covered by its own tests, so there is one definition of "how to read an Ashby error" instead of two that drift. Checked the import boundary first: linq, clickup, zoho-desk, gitlab, and emailbison providers already import from @/tools, so this follows established precedent rather than introducing a new dependency direction. The delete path now reports why it failed instead of only the HTTP status. Testing Four new tests cover each error shape and the duplicate-guidance path, which previously had no coverage for createSubscription at all. 21 passing in the provider suite. Verified end to end against a real Ashby organization using a cloudflare tunnel, with the job created trigger (job metadata only — no candidate data was ever delivered): webhook.create registered successfully (registration_status: active, real externalId) A signed synthetic jobCreate payload delivered to the registered URL returned 200 Webhook processed The workflow executed from that delivery (trigger=ashby, status=completed) A tampered signature was rejected with 401 Unauthorized, so verification was proven to reject as well as accept Removing the trigger deleted the webhook: "Successfully deleted Ashby webhook subscription 427c6629…" Teardown confirmed independently — deleting the same id again returns webhook_not_found No residue: the webhook is gone from Ashby, local webhook rows are 0. Notes for reviewers The receive path needed no changes. It uses HMAC-SHA256 with a timing-safe safeCompare and rejects both a missing secret and a missing signature. Two things worth knowing that are not changed here: webhook.list does not exist in Ashby's API. Teardown can only be verified by attempting a delete twice, which is what the test above did. Worth knowing if a webhook ever leaks, since you cannot enumerate to find it. Registration happens on deploy, not on save. Saving a trigger creates a candidate webhook row; deploying promotes it to active and calls webhook.create. The block's setup text says the webhook is created "when you save the trigger", which is misleading. Left alone here to keep this diff focused.

Open Graph Description: Summary Follow-up to #6703, found while testing the Ashby webhook triggers end to end against a real organization. The webhook provider read errorInfo.message and a top-level message, but not the e...

X Description: Summary Follow-up to #6703, found while testing the Ashby webhook triggers end to end against a real organization. The webhook provider read errorInfo.message and a top-level message, but not the e...

Opengraph URL: https://github.com/simstudioai/sim/pull/6711

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:842138a9-905d-ffd0-0437-d7a2b0c6a016
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9824:160F17:272793:36E387:6AFB52B4
html-safe-nonce36bc610e0ef2d3f77c3e11a400e0be82a726d3fc86c5b4e9ff4e9649f347adb1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODI0OjE2MEYxNzoyNzI3OTM6MzZFMzg3OjZBRkI1MkI0IiwidmlzaXRvcl9pZCI6IjY3NzU4MDU1Nzk3OTgyMDUxMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9e20202fb42513c73155f4889b5b95b7f738bff8d962530ff676d630065859f1
hovercard-subject-tagpull_request:4283564955
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/6711/files
twitter:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
og:image:altSummary Follow-up to #6703, found while testing the Ashby webhook triggers end to end against a real organization. The webhook provider read errorInfo.message and a top-level message, but not the e...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6711/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6711%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6711%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6711/files
Reloadhttps://github.com/simstudioai/sim/pull/6711/files
Reloadhttps://github.com/simstudioai/sim/pull/6711/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/ashby-webhook-error-shapeshttps://github.com/simstudioai/sim/tree/fix/ashby-webhook-error-shapes
Conversation 13 https://github.com/simstudioai/sim/pull/6711
Commits 6 https://github.com/simstudioai/sim/pull/6711/commits
Checks 30 https://github.com/simstudioai/sim/pull/6711/checks
Files changed https://github.com/simstudioai/sim/pull/6711/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6711/files
fix(webhooks): read every Ashby error shape when webhook registration fails https://github.com/simstudioai/sim/pull/6711/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/6711/files
7f809e4 fix(webhooks): read every Ashby error shape when webhook registration… mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6711/commits/7f809e4af696fe1f76c68603a1b846e548216cab
41c5bd8 style(webhooks): format the Ashby provider test to biome's apps/sim c… mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6711/commits/41c5bd831803cf37b96d03e651aac1471ea65bbf
db5dee4 Merge remote-tracking branch 'origin/staging' into fix/ashby-webhook-… mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6711/commits/db5dee49367ce3183135b293fb28e8dd817b54cb
a37dc4d fix(webhooks): keep the Ashby error extractor local to the provider mzxchandra Aug 14, 2026 https://github.com/simstudioai/sim/pull/6711/commits/a37dc4df063bb49e19bf7a2cf3cbdf73678bb0de
aa5ed04 fix(webhooks): fail an Ashby webhook delete that returns success:false waleedlatif1 Aug 14, 2026 https://github.com/simstudioai/sim/pull/6711/commits/aa5ed04502e1f24dae9da71eaf31a02e8d41c808
f1a72f4 fix(webhooks): match Ashby's real not-found envelope on repeat delete waleedlatif1 Aug 15, 2026 https://github.com/simstudioai/sim/pull/6711/commits/f1a72f4c8d1fa04a68bbe87fdd30d1f2814036ec
Clear filters https://github.com/simstudioai/sim/pull/6711/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6711/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6711/files
ashby.test.ts https://github.com/simstudioai/sim/pull/6711/files#diff-51b5a6cd125db451782a39ca4ad2dccce84e141e921e301ea73a63c395688e48
ashby.ts https://github.com/simstudioai/sim/pull/6711/files#diff-bb9f5ff76d4f34f2f2229f868c064c19aca85933d20706d4d2edb1cdd4b27bc4
utils.ts https://github.com/simstudioai/sim/pull/6711/files#diff-d5085f2ebda98132105ab2c9e357472e6ac1c148a7c0135348222f26f204b786
apps/sim/lib/webhooks/providers/ashby.test.tshttps://github.com/simstudioai/sim/pull/6711/files#diff-51b5a6cd125db451782a39ca4ad2dccce84e141e921e301ea73a63c395688e48
View file https://github.com/simstudioai/sim/blob/f1a72f4c8d1fa04a68bbe87fdd30d1f2814036ec/apps/sim/lib/webhooks/providers/ashby.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6711/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6711/files#diff-51b5a6cd125db451782a39ca4ad2dccce84e141e921e301ea73a63c395688e48
https://github.com/simstudioai/sim/pull/6711/files#diff-51b5a6cd125db451782a39ca4ad2dccce84e141e921e301ea73a63c395688e48
https://github.com/simstudioai/sim/pull/6711/files#diff-51b5a6cd125db451782a39ca4ad2dccce84e141e921e301ea73a63c395688e48
https://github.com/simstudioai/sim/pull/6711/files#diff-51b5a6cd125db451782a39ca4ad2dccce84e141e921e301ea73a63c395688e48
apps/sim/lib/webhooks/providers/ashby.tshttps://github.com/simstudioai/sim/pull/6711/files#diff-bb9f5ff76d4f34f2f2229f868c064c19aca85933d20706d4d2edb1cdd4b27bc4
View file https://github.com/simstudioai/sim/blob/f1a72f4c8d1fa04a68bbe87fdd30d1f2814036ec/apps/sim/lib/webhooks/providers/ashby.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6711/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6711/files#diff-bb9f5ff76d4f34f2f2229f868c064c19aca85933d20706d4d2edb1cdd4b27bc4
https://github.com/simstudioai/sim/pull/6711/files#diff-bb9f5ff76d4f34f2f2229f868c064c19aca85933d20706d4d2edb1cdd4b27bc4
https://github.com/simstudioai/sim/pull/6711/files#diff-bb9f5ff76d4f34f2f2229f868c064c19aca85933d20706d4d2edb1cdd4b27bc4
https://github.com/simstudioai/sim/pull/6711/files#diff-bb9f5ff76d4f34f2f2229f868c064c19aca85933d20706d4d2edb1cdd4b27bc4
https://github.com/simstudioai/sim/pull/6711/files#diff-bb9f5ff76d4f34f2f2229f868c064c19aca85933d20706d4d2edb1cdd4b27bc4
https://github.com/simstudioai/sim/pull/6711/files#diff-bb9f5ff76d4f34f2f2229f868c064c19aca85933d20706d4d2edb1cdd4b27bc4
apps/sim/triggers/ashby/utils.tshttps://github.com/simstudioai/sim/pull/6711/files#diff-d5085f2ebda98132105ab2c9e357472e6ac1c148a7c0135348222f26f204b786
View file https://github.com/simstudioai/sim/blob/f1a72f4c8d1fa04a68bbe87fdd30d1f2814036ec/apps/sim/triggers/ashby/utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6711/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6711/files#diff-d5085f2ebda98132105ab2c9e357472e6ac1c148a7c0135348222f26f204b786
https://github.com/simstudioai/sim/pull/6711/files#diff-d5085f2ebda98132105ab2c9e357472e6ac1c148a7c0135348222f26f204b786
https://github.com/simstudioai/sim/pull/6711/files#diff-d5085f2ebda98132105ab2c9e357472e6ac1c148a7c0135348222f26f204b786
https://github.com/simstudioai/sim/pull/6711/files#diff-d5085f2ebda98132105ab2c9e357472e6ac1c148a7c0135348222f26f204b786
Please reload this pagehttps://github.com/simstudioai/sim/pull/6711/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.