undefined method `after' for nil:NilClass (httpx 0.19.1)
My code looks a bit like this (Very Simple)
def invoice_xpress_taxes
api_client do |http|
http.get('/taxes.json').json
end
end
protected
def api_client(**attributes, &block)
HTTPX.with(origin: "https://#{account_name}.app.invoicexpress.com", params: { api_key: api_key }).wrap(&block)
end
But after the first load, when i request invoice_xpress_taxes
method a 2nd time i get the below error. To fix I have to restart the server.