A followup: On 2018-09-18 1:53 PM, Joseph Scheuhammer wrote: > Hi Steve, > > .... I'm going to change the code to > log it in plain text just for debugging purposes, and see what the full > URL is. I'll also check the HTTP headers. Or, before doing that, see > if I can find out some other way.
No need. I missed substituting <SENSITIVE> for the userid/password in one line of the code, and it's logged plain as day. I'm fixing that in the next five minutes. But, the form of the URL is, in fact: http://userid:[email protected]:5984/gpii where "userid" and "password" are loooong strings of digits. > > On 2018-09-18 1:16 PM, Steven Githens wrote: >> Hi Joseph, >> >> What URL is your dataloader hitting to the AWS cloud, does it have a >> username/password in it? By default your CouchDB instance in AWS is going >> to get a username/password that you have to use for each request, and I >> beleive you need to specify it using Basic Auth... which I don't have an >> example of at the moment... it either goes in the URL or in the HTTP headers. >> >> The autogenerated username/password should be in the file: >> aws/modules/deploy/secrets/dev-sgithens.gpii.net-secrets.yml. But with your >> account name. >> >> Cindy or an Ops person might want to chime in, but it sounds like this is >> your problem. >> >> Cheers, >> Steve >> >>> On Sep 18, 2018, at 9:28 AM, Joseph Scheuhammer <[email protected]> wrote: >>> >>> All, >>> >>> I've encountered an error condition when running the dataloader with >>> AWS. When attempting to update the "_design/view" document, the >>> response is: >>> '{"id":"_design/views","error":"unauthorized","reason":"You are not a db >>> or server admin."}'. >>> >>> Note that this only occurs when running the dataloader with AWS. This >>> does not happen when testing locally on a VM, nor when CI runs in Jenkins. >>> >>> I've searched online to get more information, but I'm not finding a >>> lot. This stackoverflow article suggests using POST instead of PUT, but >>> I am already using POST (see: >>> https://stackoverflow.com/questions/22805201/unable-to-add-documents-into-db-with-user-you-are-not-a-server-admin). >>> >>> I'm searching the CouchDB documentation >>> (http://docs.couchdb.org/en/stable/), but am drawing a blank. >>> >>> Does anyone know what this means? >>> >>> -- >>> ;;;;joseph. >>> >>> 'Call me hobophobic, but I don't think two vagrants should be allowed to >>> marry.' >>> - J. Tiedrich - >>> >>> _______________________________________________ >>> Architecture mailing list >>> [email protected] >>> https://lists.gpii.net/mailman/listinfo/architecture > -- ;;;;joseph. 'Call me hobophobic, but I don't think two vagrants > should be allowed to marry.' - J. Tiedrich - -- ;;;;joseph. 'Call me hobophobic, but I don't think two vagrants should be allowed to marry.' - J. Tiedrich - _______________________________________________ Architecture mailing list [email protected] https://lists.gpii.net/mailman/listinfo/architecture
