nz / elasticmill

Process your highly parallel Elasticsearch updates into efficient batches.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trouble getting initial setup

jredburn opened this issue · comments

Working through this after a long delay, I'm running into trouble with the proxying and am not sure what to do next to debug.

I've gone through the setup and it all works fine, but as soon as I try to create an index through the queuing server (curl -X POST http://———.herokuapp.com/test) I get:

{"message":"Not authorized. You must supply valid authorization credentials to create a new index for desolate-scrubland-2927. Please refer to your account dashboard, or ask support@bonsai.io for help.","status":401}

If I create the index by hitting BONSAI_URL directly and then try to query the index, I get:

{"error": "Index has been deprovisioned", "status": 410}

These errors seem to be coming from ES, but nothing is getting logged (other than the bootup listening on ...). Any thoughts on how I can track thuis down?

Hey @jredburn, cool that you're giving this a try!

I guess the HTTP Auth isn't being passed through to the Go HTTP client correctly? I thought that my testing had already verified that :-\

Anyway, looks like something weird is happening between parsing the BONSAI_URL env variable and setting it in the http client in Go. I'd expect this to work but it's not: http://desolate-scrubland-2927.herokuapp.com/

Anyway, I'll take another run at testing later today or some time tomorrow and see if I can duplicate the issue. Or feel free to add me as a collaborator on your app: nick@beyondthepath.com

—Nick