James Hurst

Results 59 comments of James Hurst

That is odd, but I am quite certain the error string "error" could not be generated here. Note that in many cases we simply pass on the error message from...

> For https requests, if the `ssl_client_cert` is set, then the [poolname](https://github.com/ledgetech/lua-resty-http/blob/master/lib/resty/http_connect.lua#L165-L172) should include a field (e.g. the digest of cert) to distinguish different clients. Otherwise, there will be a...

I think perhaps you are somehow confusing "single-shot vs streaming", with "proxy vs direct". The `request_uri` interface is for making single-shot requests - that is, requests which will connect, read...

Well, the error message shows that the code fails when trying to treat a variable as a string, when it is `nil`. And if you inspect the code, that variable...

Judging from your error logs, it is crashing on the `init` phase, not `access`? You can't use cosockets during the `init` phase (without a timer light thread). Again, without full...

> ping @pintsized This one has been open for a long time. Could you have a look? Sorry, I have no time to look at this at the moment. I'd...

> @pintsized Could you bump a new version? Appreciate it. `0.17.2` is now on `luarocks`. I'm having some issues with `opm`, but it will be there once resolved.

Don't try to reuse your `httpc`. In particular when you use the `request_uri` interface, the entire request is completed and the connection closed or placed back on the pool. Hence...

Well turns out ChatGPT doesn't know what it's talking about. Who could have guessed? ;) Why are you passing the string "body " as a URL? Do you not mean...