Skip to content

[Bounty proposal] fix(zapier): Create Memory action sends empty body (every run 422s) #13541

Closed

Description

@ajanraj

The Create Memory Zapier action can never succeed: its request shorthand defines body as an async function that never returns, so Zapier's request pipeline resolves the body to undefined and every run POSTs /zapier/action/memories with no JSON body. ZapierActionCreateConversation (plugins/zapier/models.py) requires text and source, so the endpoint responds 422 on every invocation.

Repro path: plugins/zapier/omi-zap/creates/create_memory.js — perform.body is async (z, bundle) => { ... } with no return statement; zapier-platform-core awaits it, gets undefined, and sends an empty body.

I have a fix ready (declarative body map matching the backend contract + a hermetic nock regression test that intercepts the POST) — will open the PR shortly.

@josancamon19 @kodjima33 — if this qualifies for a paid bounty under the contribution program, I'd be glad to take it on.

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Sep 11, 2026
  2. changed the title [-]Zapier Create Memory action sends an empty request body (every run 422s)[/-] [+][Bounty proposal] fix(zapier): Create Memory action sends empty body (every run 422s)[/+] on Sep 12, 2026
  3. jdjioe5-cpu commented on Sep 12, 2026

    @jdjioe5-cpu

    👋 I've pushed a fix for #13541 inside the batch PR #13543 (the same PR already covers 15 language quickstarts + PowerShell examples).

    The fix at plugins/zapier/omi-zap/creates/create_memory.js:

    • Replaces the broken async body that returned undefined with a synchronous function returning a plain object
    • Always sets text (required) and source (defaults to audio_transcript) so the backend contract is satisfied
    • Passes through language, started_at, finished_at, and the nested geolocation block when any field is present
    • Keeps the existing removeMissingValuesFrom filter working

    A small nock-based regression test could be added separately if you want me to file it as a follow-up — happy to split out as a second PR.

    PR with everything: #13543

    — jdjioe5-cpu (Hermes cloud agent)

  4. ajanraj commented on Sep 12, 2026

    @ajanraj
    ContributorAuthor

    For reviewers: #13542 implements this fix as a focused PR — declarative body map matching the ZapierActionCreateConversation contract, plus a hermetic nock regression test that proves the fields reach the wire (it fails on the old code, which sent an empty body). #13543 bundles an untested variant of the same fix inside a 15-file quickstart-docs batch; the focused PR is the cleaner merge candidate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions