Title: Webhook execution fails on Kubernetes in latest SIM AI image due to idempotency_key database error · Issue #7294 · simstudioai/sim · GitHub
Open Graph Title: Webhook execution fails on Kubernetes in latest SIM AI image due to idempotency_key database error · Issue #7294 · simstudioai/sim
X Title: Webhook execution fails on Kubernetes in latest SIM AI image due to idempotency_key database error · Issue #7294 · simstudioai/sim
Description: Webhook execution is not working in the latest SIM AI Docker image when deployed in Kubernetes. The webhook endpoint itself is working correctly. When the same webhook endpoint is triggered manually using Postman, the request is received...
Open Graph Description: Webhook execution is not working in the latest SIM AI Docker image when deployed in Kubernetes. The webhook endpoint itself is working correctly. When the same webhook endpoint is triggered manuall...
X Description: Webhook execution is not working in the latest SIM AI Docker image when deployed in Kubernetes. The webhook endpoint itself is working correctly. When the same webhook endpoint is triggered manuall...
Opengraph URL: https://github.com/simstudioai/sim/issues/7294
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Webhook execution fails on Kubernetes in latest SIM AI image due to idempotency_key database error","articleBody":"Webhook execution is not working in the latest SIM AI Docker image when deployed in Kubernetes.\n\nThe webhook endpoint itself is working correctly. When the same webhook endpoint is triggered manually using Postman, the request is received successfully.\n\nHowever, when the webhook is triggered from SIM AI, the execution fails internally in the DatabaseJobQueue while processing the idempotency_key record. Because of this failure, the actual webhook request is not sent to the target endpoint.\n\nEnvironment\nApplication: SIM AI\nDeployment: Kubernetes\nContainer: Latest SIM AI Docker image\nFeature: Webhook execution\nComponent: DatabaseJobQueue\nDatabase table: idempotency_key\nSteps to Reproduce\nDeploy the latest SIM AI Docker image in Kubernetes.\nConfigure a webhook in SIM AI.\nTrigger the webhook from SIM AI.\nCheck the SIM AI pod logs.\nTrigger the same webhook endpoint using Postman.\nExpected Behavior\n\nSIM AI should successfully execute the webhook and send the HTTP request to the configured webhook endpoint.\n\nActual Behavior\n\nThe webhook request is not sent from SIM AI.\n\nThe execution fails in DatabaseJobQueue while processing the idempotency_key database query.\n\nError Log\ntimestamp=2026-08-31T08:51:18.333Z\nlevel=ERROR\nmodule=DatabaseJobQueue\nmessage=[webhook-execution] Inline job run_T6VfedZQBRGQywKhent- failed\nrequestId=f30d69a0\nmethod=POST\npath=/api/webhooks/trigger/4a4c3c85-9633-4e48-9e1c-320d55df5e4e\n\nerror=Failed query:\ninsert into \"idempotency_key\"\n(\"key\", \"result\", \"created_at\")\nvalues ($1, $2, $3)\non conflict (\"key\") do update\nset \"result\" = $4,\n \"created_at\" = $5\nwhere (\n (\n \"idempotency_key\".\"result\" ->> 'status'\n IS DISTINCT FROM 'in-progress'\n AND \"idempotency_key\".\"created_at\" \u003c $6\n )\n OR\n (\n \"idempotency_key\".\"result\" ->> 'status' = 'in-progress'\n AND COALESCE(\n CASE\n WHEN jsonb_typeof(\n \"idempotency_key\".\"result\" -> 'inProgressExpiresAt'\n ) = 'number'\n THEN (\n \"idempotency_key\".\"result\" ->> 'inProgressExpiresAt'\n )::double precision\n END,\n EXTRACT(EPOCH FROM \"idempotency_key\".\"created_at\") * 1000 + $7\n ) \u003c= $8\n )\n)\nreturning \"key\"\nVerification\n\nThe same webhook endpoint was tested using Postman:\n\nPostman: Request received successfully.\nSIM AI on Kubernetes: Request is not received.\nSIM AI logs: Webhook execution fails in DatabaseJobQueue.\nAdditional Information\n\nThe failure appears to occur before SIM AI sends the actual HTTP request to the webhook endpoint.\n\nPlease investigate the idempotency_key handling and DatabaseJobQueue logic in the latest SIM AI Docker image, particularly when running in a Kubernetes environment.","author":{"url":"https://github.com/SAljajith","@type":"Person","name":"SAljajith"},"datePublished":"2026-08-31T10:27:19Z","url":"https://github.com/simstudioai/sim/issues/7294"}
| react-profiling | 0 |
| react-import-map | react,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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0e973fa7-89a7-4a19-73a2-28795d388912 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2E8:AE1F3:100CCA:16BF68:6AFB4BDB |
| html-safe-nonce | 92007557ec8bfc80753dfd1965136697babac991260d2db7bc1790474f4f4d9b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkU4OkFFMUYzOjEwMENDQToxNkJGNjg6NkFGQjRCREIiLCJ2aXNpdG9yX2lkIjoiMTcxMDA1MDM4MzI3MjU2MTYyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 79690151000ffe986e582ca58d19908e52c1570230f8e3073e68eae4044f2473 |
| hovercard-subject-tag | issue:5299105785 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/7294/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dcf7a10eab378320086def4992a9e8268393105196b831d747b6273e4eca4ac3/simstudioai/sim/issues/7294 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dcf7a10eab378320086def4992a9e8268393105196b831d747b6273e4eca4ac3/simstudioai/sim/issues/7294 |
| og:image:alt | Webhook execution is not working in the latest SIM AI Docker image when deployed in Kubernetes. The webhook endpoint itself is working correctly. When the same webhook endpoint is triggered manuall... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SAljajith |
| hostname | github.com |
| expected-hostname | github.com |
| None | acf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1 |
| turbo-cache-control | no-preview |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 26504db649b58525278f77a52b80ba5f10d5f4de |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width