Why Can't I Create a New Subscription for `$errors`?

This topic was automatically generated from Slack. You can find the original thread here.

No matter what I try, I seem unable to create a new subscription for $errors. :disappointed:

Sometime it just won’t return anything (and the subscription is not created):

And other time it will return a 404:

I tried via curl: https://api.pipedream.com/v1/subscriptions?emitter_id=o_3EIJNlK&event_name=$errors&listener_id=p_PACK8Lw (along with the auth header, of course)

and I get the same 404 error: {"error":"record not found"}

And when I try with https://api.pipedream.com/v1/subscriptions?emitter_id=p_*&event_name=$errors&listener_id=p_PACK8Lw

I get {"data":[]}

I also tried with various different listeners/workflows, but no change.

Ok… it only seems to work if I’m listening from a specific workflow: https://api.pipedream.com/v1/subscriptions?emitter_id=p_G6CWnbO&listener_id=p_D1C5QoA

It returns:
{"data":[{"id":"sub_WlUmrV5","emitter_id":"p_G6CWnbO","listener_id":"p_D1C5QoA","event_name":""}]}

But I want to listen to all workflows. :disappointed:

we’ll look into this ASAP

I don’t mean to add unnecessary pressure on this, but we’re really looking forward to adding our global custom error handling! :pray:

Np you should always ping us about things like this! Will take a look in 30 min

is the listener workflow (p_PACK8Lw) in a project? And if so is that project Git-backed or no?

I’m able to repro and I think it’s related to the launch of projects. We’re looking into it more

p_PACK8Lw is in a project, but not git-based yet (we’re just testing for now)

Can you try this again? It should be fixed

https://api.pipedream.com/v1/subscriptions?emitter_id=p_*&event_name=$errors&listener_id=p_PACK8Lw still returned {"data":[]} .

But it looks like the other one worked! (https://api.pipedream.com/v1/subscriptions?emitter_id=o_3EIJNlK&event_name=$errors&listener_id=p_PACK8Lw) :tada:

It returned {"data":[{"id":"sub_7gUQbdp","emitter_id":"o_3EIJNlK","listener_id":"p_PACK8Lw","event_name":"$errors"}]}