encore icon indicating copy to clipboard operation
encore copied to clipboard

TS : PubSub name, seems it can't have spaces.

Open portedison opened this issue 8 months ago • 2 comments

First time running PubSub locally, I tried to name topic/subscription like so -"Process Webhook X Event" that fails with the error -

thread 'tokio-runtime-worker' panicked at runtimes/core/src/pubsub/nsq/topic.rs:28:52:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at runtimes/core/src/pubsub/nsq/sub.rs:40:65:
called `Option::unwrap()` on a `None` value
fatal runtime error: failed to initiate panic, error 5

Adding RUST_BACKTRACE=1 didn't offer much more.

But when I changed it to "process-webhook-x-event" everything ran fine.

The reason I tried to name it as above is because CronJob() has a title param as well as name, but this doesn't. Maybe this should have a title param in conf also?

Perhaps a better error here would help, the above error is a bit misleading, I wasn't quite clear if I needed to install and run nsq with custom config, but it appears that you handle that.

portedison avatar Apr 07 '25 00:04 portedison

Thanks for reporting, yes these rust errors are not helpful and we're continuously working through them to add more helpful ones.

marcuskohlberg avatar Apr 09 '25 07:04 marcuskohlberg