-
Notifications
You must be signed in to change notification settings - Fork 20
Operations failing with unauthorised response and "_reader access" required message. #178
Comments
@jthomas that's a bit odd. My only guess is that somehow the cookie storage on linux is different and despite us setting the cookie for the session, it never gets sent in the request for I'll have a dig into it later when I get time. If you have a local couch instance you could try to reproduce this against the local instance using http and using wireshark or similar to see the cookie exchange. Although my guess is that each time we ask for the cookie we receive the |
Are you talking about |
Yes it would seem to be related to I tried testing this by putting a debug line here, after the cookie is retrieved. I added So it seems to me that the I had a quick look in the swift jira for anything relevant but couldn't see anything. |
Thanks for the info. @mamabusi please take a look at this... |
Thanks for the info @jthomas and @tomblench . Will look into this and update the findings. |
Currently, |
Thanks @mamabusi . Closing as this is not a bug in our library. |
@mamabusi Thanks for the info, is there an issue I can follow to know when this is resolved? |
@jthomas I have created an issue here: https://bugs.swift.org/browse/SR-7338 for your tracking. |
issue
I'm seeing authentication failures when attempting the
GetAllDocsOperation
on Linux with Swift 4. I've also tried theGetDocumentOperation
and see the same issue.Running the same code on OS X works fine.
test files
Here's the sample project files I'm using to build a Swift exectuable.
Package.swift
Sources/Test/main.swift
test steps
swift package init --type executable
Package.swift
andmain.swift
from above.swift run Test
enviroments
OS X 👍
Linux 👎
For Linux, I've tested with the following Docker images
openwhisk/action-swift-v4
andopenwhisk/action-swift-v4.1
. Same result in both enviroments.The text was updated successfully, but these errors were encountered: