Closed dazza-codes closed 9 years ago
I'm afraid I an't try this, as devbox.example.org isn't an endpoint i can poke.
Setting the Authorization header as you do seems correct.
The only thing I can suggest is to either use a debugger (byebug for example) in the #response
method at the line referenced to look more completely at the response messages, or clone the repo and instrument the code to dump this information out.
Authorization issues can be difficult, and I've used it most successfully when including authorization information (or a grant token) as part of the endpoint URL.
How are the authorization headers set and debugged? Is there a verbose option, like the curl -v option? Here's the code that fails (substitute real auth parameters), which is a query on a MarkLogic SPARQL endpoint where the Kb is running on port 8322.
The same host and auth parameters work with curl, e.g.