Closed gaborbarna closed 8 years ago
@ptaoussanis, could you take a peek at this?
Hi there,
[pred-form, val]: [([:el #{"https:" "http:"}] protocol),
]
This error means that there's a check somewhere against a protocol
symbol to make sure that it's value is either "https:" or "http:". The check is failing since its actual value is nil
.
Sounds like the option at https://github.com/ptaoussanis/sente/blob/7de691ed3b0d0e727fdeb791378b0476a200bedd/src/taoensso/sente.cljc#L1357
needs to be specified but isn't.
Does that help / make sense?
Thanks Peter! I take it the snapshot previously did not require this. I've set :protocol
to :http
in a59b260cdab0adc836a97404673978c7ce0bd9f0.
take it the snapshot previously did not require this.
Thanks for explicitly mentioning this, it's a regression- the fallback to default value is broken. Will fix.
Cheers!
I take it the snapshot previously did not require this.
Actually, just checked - and the fall back is indeed working correctly (i.e. as it used to). The salient difference is that there wasn't an invariant check before so some unspecified behaviour was getting through silently.
It seems reasonable to just default to :http
when no protocol or window location are available. Will update.
Hi,
running the example nodejs client produces the following error: