I’m currently trying to run my tests on an iOS iPhone7 PLUS.
The current situation is that I can trigger my testsuite from IntelliJ to the selenium HUB (Windows) and route the request to Appium Server (Mac). After that my WebDriverAgentRunner starts and open Safari on my iPhone unforunatley it starts appium.io instead of running my testsuite. Any Suggestions what could be the reason?
Below you can see the general informations and my AppiumServer Logfile.
I follow this guide to setup my WebDriverAgentRunner
https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md
Thank you in advance!!!
Best Regards
Kai
General:
Windows:
Windows 7
Running Selenium Hub (java -jar selenium-server-standalone-3.4.0.jar -role hub)
Intern configuration:
tunnel: “NullTunnel”,
tunnelOptions: {
host: “localhost:4444”
// port: “4444”
},
environments: [ {
browserName: "Safari",
platformName: [ "iOS"],
platformVersion: [ "10.3" ],
platform: [ "MAC" ],
deviceName: ["iPhone7Plus"],
fixSessionCapabilities: "false"
}],
proxyUrl: "http://XXXXX000:9000/",
Mac Book iOS 10.12.5 Sierra :
Appium Version 1.6.5
Running Appium Server (appium --nodeconfig iPhoneNode.json -U XXXX)
iPhoneNode.json
{
“capabilities”: [
{
“browserName”: “Safari”,
“maxInstance”: 1,
“platformName”: “iOS”,
“platformVersion” : “10.3”,
“startIWDP”: true,
“udid”: “UID_Pseudo”,
“deviceName”: “iPhone7Plus”,
“platform”: “MAC”
}
],
“configuration”:
{
“cleanUpCycle”:2000,
“timeout”:30000,
“proxy”: “org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“url”: “http://XXXXX:4723/wd/hub”,
“host”: “XXXXX”,
“port”: 4723,
“maxSession”: 1,
“register”: true,
“registerCycle”: 5000,
“hubPort”: 4444,
“hubHost”: “XXXXX000”,
“hub”: “XXXXX000:4444/grid/register”
}
}
I install the following packages on Mac:
npm install -g appium
npm install -g ios-deploy
npm install appium doctor
brew install libtoolize
brew install automaker
brew install --HEAD libmobiledevice
xcode-select–install
brew install carthage
Real Device
iPhone 7
Installed Apps
SafariLauncher & WebDriverAgentRunner via xCode
Now i try to start my envrioment:
Start SeleniumGrid Hub Sucessfully
Start AppiumServer and Connect to Hub Sucessfully
Start Test from IntelleJ getTimeout
Now the iPhone is Opening the Safari Browser and it navigate to the wrong wesbite (appium.io website)
For details see AppiumServerLog:
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“name”:“build/webapp/app/intern”,“idle-timeout”:60,“browserName”:“Safari”,“platformName”:“iOS”,“platformVersion”:“10.3”,“platform”:“MAC”,“deviceName”:“iPhone7Plus”},null,null]
[debug] [BaseDriver] Event ‘newSessionRequested’ logged at 1500650988235 (17:29:48 GMT+0200 (CEST))
[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITestDriver (v2.30.0) session
[Appium] Capabilities:
[Appium] name: ‘build/webapp/app/intern’
[Appium] idle-timeout: 60
[Appium] browserName: ‘Safari’
[Appium] platformName: ‘iOS’
[Appium] platformVersion: ‘10.3’
[Appium] platform: ‘MAC’
[Appium] deviceName: ‘iPhone7Plus’
[Appium] udid: ‘UID_Pseudo’
[debug] [XCUITest] XCUITestDriver version: 2.30.0
[BaseDriver] The following capabilities were provided, but are not recognized by appium: name, idle-timeout, platform.
[BaseDriver] Session created with session id: fa9234e0-c195-4384-9b29-8d437a76d215
[debug] [XCUITest] Xcode version set to ‘8.3.3’ (tools v8.3.2.0.1.1492020469)
[debug] [XCUITest] iOS SDK Version set to ‘10.3’
[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1500650988431 (17:29:48 GMT+0200 (CEST))
[debug] [XCUITest] Available devices: UID_Pseudo
[debug] [XCUITest] Creating iDevice object with udid ‘UID_Pseudo’
[XCUITest] Determining device to run tests on: udid: ‘UID_Pseudo’, real device: true
[XCUITest] Safari test requested
[debug] [BaseDriver] Event ‘appConfigured’ logged at 1500650988600 (17:29:48 GMT+0200 (CEST))
[debug] [BaseDriver] Event ‘resetStarted’ logged at 1500650988600 (17:29:48 GMT+0200 (CEST))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event ‘resetComplete’ logged at 1500650988601 (17:29:48 GMT+0200 (CEST))
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
[debug] [BaseDriver] Event ‘logCaptureStarted’ logged at 1500650988754 (17:29:48 GMT+0200 (CEST))
[XCUITest] Setting up real device
[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1500650988757 (17:29:48 GMT+0200 (CEST))
[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: ‘/usr/local/bin/carthage’
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=UID_Pseudo -configuration Debug IPHONEOS_DEPLOYMENT_TARGET=10.3’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[debug] [XCUITest] Output from xcodebuild will not be logged
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[HTTP] <-- GET /wd/hub/status - - ms - -
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Log file for xcodebuild test: /Users/tnk/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/BA8AABB7-9F1B-4C6F-9D63-BE4B3250C46E/Session-WebDriverAgentRunner-2017-07-21_172956-nNAexN.log
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[HTTP] <-- GET /wd/hub/status - - ms - -
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[HTTP] <-- GET /wd/hub/status - - ms - -
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[HTTP] <-- GET /wd/hub/status - - ms - -
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
ebug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1500651032579 (17:30:32 GMT+0200 (CEST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1500651033651 (17:30:33 GMT+0200 (CEST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying…
[HTTP] <-- GET /wd/hub/status - - ms - -
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1500651034660 (17:30:34 GMT+0200 (CEST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1500651035670 (17:30:35 GMT+0200 (CEST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1500651036680 (17:30:36 GMT+0200 (CEST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1500651037690 (17:30:37 GMT+0200 (CEST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying…
[debug] [BaseDriver] Event ‘wdaSessionAttempted’ logged at 1500651038751 (17:30:38 GMT+0200 (CEST))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] Failed to create WDA session. Retrying…
^C[Appium] Received SIGINT - shutting down
[debug] [XCUITest] iproxy exited with code ‘null’
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination ‘id=’ test
The test is running without an end see log:
2017-07-24 09:00:26.860964+0200 XCTRunner[259:9227] Running tests…
2017-07-24 09:00:27.495866+0200 XCTRunner[259:9227] Continuing to run tests in the background with task ID 1
Test Suite ‘All tests’ started at 2017-07-24 09:00:28.149
Test Suite ‘WebDriverAgentRunner.xctest’ started at 2017-07-24 09:00:28.150
Test Suite ‘UITestingUITests’ started at 2017-07-24 09:00:28.150
Test Case ‘-[UITestingUITests testRunner]’ started.
t = 0.00s Start Test at 2017-07-24 09:00:28.151
t = 0.00s Set Up
2017-07-24 09:00:28.162188+0200 XCTRunner[259:9347] [User Defaults] Failed to write value for key AutomationDisableFauxCollectionCells in CFPrefsPlistSource<0x17011f1d0> (Domain: com.apple.Accessibility, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null)): setting preferences outside an application’s container requires user-preference-write or file-write-data sandbox access, switching to read-only
2017-07-24 09:00:28.162802+0200 XCTRunner[259:9227] Built at Jul 24 2017 07:59:00
2017-07-24 09:00:28.179892+0200 XCTRunner[259:9227] ServerURLHere->http://10.192.1.103:8100<-ServerURLHere
Related
I am using the mvn org.sonatype.ossindex.maven:ossindex-maven-plugin from command line to check the dependencies of a maven project for CVEs. Locally, everything works fine, but in my build pipeline in Azure Devops, I get the following error:
[DEBUG] Connecting to ossindex.sonatype.org/18.118.116.156:443
[DEBUG] Connecting socket to ossindex.sonatype.org/18.118.116.156:443 with timeout 0
[DEBUG] Enabled protocols: [TLSv1.3, TLSv1.2]
[DEBUG] Enabled cipher suites:[TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
[DEBUG] Starting handshake
[DEBUG] Secure session established
[DEBUG] negotiated protocol: TLSv1.2
[DEBUG] negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
[DEBUG] peer principal: CN=ossindex.sonatype.org
[DEBUG] peer alternative names: [ossindex.sonatype.org]
[DEBUG] issuer principal: CN=Amazon, OU=Server CA 1B, O=Amazon, C=US
[DEBUG] Connection established 172.21.1.242:33030<->18.118.116.156:443
[DEBUG] Executing request POST /api/v3/component-report HTTP/1.1
[DEBUG] Proxy auth state: UNCHALLENGED
[DEBUG] http-outgoing-2 >> POST /api/v3/component-report HTTP/1.1
[DEBUG] http-outgoing-2 >> User-Agent: ossindex-client/1.1.1 (Linux; 5.4.0-124-generic; amd64; 11.0.12) Maven/3.8.1 Maven-Plugin/3.1.0
[DEBUG] http-outgoing-2 >> Authorization: Basic {SOME_BASE_64_THAT_TRANSLATES_TO:AzureDevOps:ey...}
[DEBUG] http-outgoing-2 >> Accept: application/vnd.ossindex.component-report.v1+json
[DEBUG] http-outgoing-2 >> Content-Length: 6737
[DEBUG] http-outgoing-2 >> Content-Type: application/vnd.ossindex.component-report-request.v1+json; charset=UTF-8
[DEBUG] http-outgoing-2 >> Host: ossindex.sonatype.org
[DEBUG] http-outgoing-2 >> Connection: Keep-Alive
[DEBUG] http-outgoing-2 >> Accept-Encoding: gzip,deflate
[DEBUG] http-outgoing-2 >> "POST /api/v3/component-report HTTP/1.1[\r][\n]"
[DEBUG] http-outgoing-2 >> "User-Agent: ossindex-client/1.1.1 (Linux; 5.4.0-124-generic; amd64; 11.0.12) Maven/3.8.1 Maven-Plugin/3.1.0[\r][\n]"
[DEBUG] http-outgoing-2 >> "Authorization: Basic {SOME_OTHER_BASE64_NO_IDEA_WHERE_IT_COMES_FROM=[\r][\n]"
[DEBUG] http-outgoing-2 >> "Accept: application/vnd.ossindex.component-report.v1+json[\r][\n]"
[DEBUG] http-outgoing-2 >> "Content-Length: 6737[\r][\n]"
[DEBUG] http-outgoing-2 >> "Content-Type: application/vnd.ossindex.component-report-request.v1+json; charset=UTF-8[\r][\n]"
[DEBUG] http-outgoing-2 >> "Host: ossindex.sonatype.org[\r][\n]"
[DEBUG] http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"
[DEBUG] http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"
[DEBUG] http-outgoing-2 >> "[\r][\n]"
[DEBUG] http-outgoing-2 >> "{"coordinates":[ A_LIST_OF_128_COORDINATES]
[DEBUG] http-outgoing-2 << "HTTP/1.1 401 Unauthorized[\r][\n]"
[DEBUG] http-outgoing-2 << "Date: Wed, 07 Dec 2022 13:51:42 GMT[\r][\n]"
[DEBUG] http-outgoing-2 << "Content-Length: 0[\r][\n]"
[DEBUG] http-outgoing-2 << "Connection: keep-alive[\r][\n]"
so I tried setting the clientConfiguration parameter described here.
it has a dead link but I believe it references this class which has this class as a member.
mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:3.1.0:audit -f $(Build.SourcesDirectory)/pom.xml -"Dossindex.authId=MY_SERVER" -"Dossindex.clientConfiguration={\"auth\": {\"username\": \"myemail#myorg.com\", \"password\": \"$(OSS_INDEX_API_TOKEN)\"} }"
but it didn't change anything.
Is this how one passes this parameter? Why am I getting a 401 in my build pipeline but everything works locally? I tried reading the docs on what requests are allowed/authorized but found them rather lacking...
we have ingress-nginx running for a while and about 10% of requests ending up with some SSL handshake problem.
Here is an example of a failing connection:
2019/02/14 10:15:35 [debug] 237#237: *4612 accept: **.**.**.**:40928 fd:53
2019/02/14 10:15:35 [debug] 237#237: *4612 event timer add: 53: 60000:5527050245
2019/02/14 10:15:35 [debug] 237#237: *4612 reusable connection: 1
2019/02/14 10:15:35 [debug] 237#237: *4612 epoll add event: fd:53 op:1 ev:80002001
2019/02/14 10:15:45 [debug] 237#237: *4612 http check ssl handshake
2019/02/14 10:15:45 [debug] 237#237: *4612 http recv(): 0
2019/02/14 10:15:45 [info] 237#237: *4612 client closed connection while SSL handshaking, client: **.**.**.**, server: 0.0.0.0:443
2019/02/14 10:15:45 [debug] 237#237: *4612 close http connection: 53
2019/02/14 10:15:45 [debug] 237#237: *4612 event timer del: 53: 5527050245
2019/02/14 10:15:45 [debug] 237#237: *4612 reusable connection: 0
2019/02/14 10:15:45 [debug] 237#237: *4612 free: 00007F4CC5858E00, unused: 232
10% of failures seems to be quite a lot to expect.
I really would appreciate any help in this!
I am new to Appium. I searched the web and tried several ways, but nothing worked. Please find the code below:
driver.findElementByXPath("//android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.RelativeLayout[#resource-id=\"in.dmart:id/linear_guide_view_skip\"]/android.widget.android.widget.TextView").click();
And
driver.findElementByXPath("//android.widget.LinearLayout[1]/android.widget.RelativeLayout[1]/android.widget.android.widget.TextView[1]").click();
And
driver.findElementByAndroidUIAutomator("text(\"GOT IT\")").click();
And
List<WebElement>textView=driver.findElements(By.className("android.widget.android.widget.TextView"));
for(i=0;i<textView.size();i++){
if(textView.get(i).getText().equals("GOT IT"))
textView.get(i).click()
}
Please find UIAutomator Viewer screenshot attached:
Server logs :
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["class name","android.widget.android.widget.TextView","e75769f1-53cb-44f7-9094-988b73fbc7be"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"class name","selector":"android.widget.android.widget.TextView","context":"","multiple":true}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"class name","selector":"android.widget.android.widget.TextView","context":"","multiple":true}}
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android.widget.android.widget.TextView' using 'CLASS_NAME' with the contextId: '' multiple: true
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.android.widget.TextView]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements selector:UiSelector[CLASS=android.widget.android.widget.TextView]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (0)
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.android.widget.TextView, INSTANCE=0]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Failed to locate element. Clearing Accessibility cache and retrying.
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding 'android.widget.android.widget.TextView' using 'CLASS_NAME' with the contextId: '' multiple: true
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.android.widget.TextView]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements selector:UiSelector[CLASS=android.widget.android.widget.TextView]
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Element[] is null: (0)
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] getElements tmp selector:UiSelector[CLASS=android.widget.android.widget.TextView, INSTANCE=0]
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":[]}
[debug] [W3C] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/e75769f1-53cb-44f7-9094-988b73fbc7be/elements 200 13691 ms - 12
You can try like this. Please edit className value if it is different as per your app.
get all elements of class name
Click where text is "GOT IT"
List<WebElement>textView =
driver.findElements(By.className("android.widget.TextView"));
for(i=0;i<textView.size();i++){
if(textView.get(i).getText().equals("GOT IT"))
textView.get(i).click()
}
By looking at the view hierarchy, to locate the TextView you don't need to worry about nested views.
You can try with UiSelector() from UIAutomator as an example below. Refer to UiSelector documentation here.
driver.findElementByAndroidUIAutomator("new UiSelector().text(\""+GOT IT+"\")").click();
Update:
Try casting driver with AndroidDriver.
((AndroidDriver<MobileElement>)driver).findElementByAndroidUIAutomator("new UiSelector().text(\"GOT IT\")");
I have configured Nginx reverse proxy server to listen on port 443 and pass the requests to an upstream SAAS client. Below is the configuration.
server {
listen 443;
server_name test.saas.someloggingserver.com;
ssl on;
ssl_certificate C:/nginx-1.13.8/nginx-1.13.8/ssl/server_cert.crt;
ssl_certificate_key C:/nginx-1.13.8/nginx-1.13.8/ssl/server.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
expires 0;
add_header Cache-Control private;
access_log logs/encrypted_access.txt;
error_log logs/encrypted_error.txt debug;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect http:// https://;
proxy_pass https://test.saas.someloggingserver.com;
}
}
The SSL certificate here also includes a intermediate certificate for SSL handshaking with the upstream server. Now when I try to access the https://test.saas.someloggingserver.com from IE (having above proxy configured) I get below 400 bad request error. I am no Nginx debugging expert, appreciate if you can take a look at below logs and direct me towards the possible cause of this issue?
2017/12/28 07:04:45 [debug] 14640#9400: post event 02D76250
2017/12/28 07:04:45 [debug] 14640#9400: delete posted event 02D76250
2017/12/28 07:04:45 [debug] 14640#9400: accept on 0.0.0.0:443, ready: 0
2017/12/28 07:04:45 [debug] 14640#9400: malloc: 02D50808:256
2017/12/28 07:04:45 [debug] 14640#9400: *3695 accept: 10.92.67.192:49268 fd:496
2017/12/28 07:04:45 [debug] 14640#9400: *3695 event timer add: 496: 60000:2616257381
2017/12/28 07:04:45 [debug] 14640#9400: *3695 reusable connection: 1
2017/12/28 07:04:45 [debug] 14640#9400: *3695 select add event fd:496 ev:0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 post event 02D76340
2017/12/28 07:04:45 [debug] 14640#9400: *3695 delete posted event 02D76340
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http check ssl handshake
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http recv(): 1
2017/12/28 07:04:45 [debug] 14640#9400: *3695 plain http
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http wait request handler
2017/12/28 07:04:45 [debug] 14640#9400: *3695 malloc: 02D4CF80:1024
2017/12/28 07:04:45 [debug] 14640#9400: *3695 WSARecv: fd:496 rc:0 266 of 1024
2017/12/28 07:04:45 [debug] 14640#9400: *3695 reusable connection: 0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 malloc: 02DAF920:4096
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http process request line
2017/12/28 07:04:45 [info] 14640#9400: *3695 client sent invalid request while reading client request line, client: 10.92.67.192, server: test.saas.someloggingserver.com, request: "CONNECT test.saas.someloggingserver.com:443 HTTP/1.0"
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http finalize request: 400, "?" a:1, c:1
2017/12/28 07:04:45 [debug] 14640#9400: *3695 event timer del: 496: 2616257381
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http special response: 400, "?"
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http set discard body
2017/12/28 07:04:45 [debug] 14640#9400: *3695 HTTP/1.1 400 Bad Request
Server: nginx/1.13.8
Date: Thu, 28 Dec 2017 07:04:45 GMT
Content-Type: text/html
Content-Length: 173
Connection: close
2017/12/28 07:04:45 [debug] 14640#9400: *3695 write new buf t:1 f:0 02DB0018, pos 02DB0018, size: 152 file: 0, size: 0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http write filter: l:0 f:0 s:152
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http output filter "?"
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http copy filter: "?"
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http postpone filter "?" 02DB017C
2017/12/28 07:04:45 [debug] 14640#9400: *3695 write old buf t:1 f:0 02DB0018, pos 02DB0018, size: 152 file: 0, size: 0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 write new buf t:0 f:0 00000000, pos 00F25C68, size: 120 file: 0, size: 0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 write new buf t:0 f:0 00000000, pos 00F25758, size: 53 file: 0, size: 0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http write filter: l:1 f:0 s:325
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http write filter limit 0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 WSASend: fd:496, s:325
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http write filter 00000000
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http copy filter: 0 "?"
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http finalize request: 0, "?" a:1, c:1
2017/12/28 07:04:45 [debug] 14640#9400: *3695 event timer add: 496: 5000:2616202381
2017/12/28 07:04:45 [debug] 14640#9400: *3695 post event 02D76340
2017/12/28 07:04:45 [debug] 14640#9400: *3695 delete posted event 02D76340
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http lingering close handler
2017/12/28 07:04:45 [debug] 14640#9400: *3695 WSARecv: fd:496 rc:0 0 of 4096
2017/12/28 07:04:45 [debug] 14640#9400: *3695 lingering read: 0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http request count:1 blk:0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http close request
2017/12/28 07:04:45 [debug] 14640#9400: *3695 http log handler
2017/12/28 07:04:45 [debug] 14640#9400: *3695 free: 02DAF920, unused: 1771
2017/12/28 07:04:45 [debug] 14640#9400: *3695 close http connection: 496
2017/12/28 07:04:45 [debug] 14640#9400: *3695 event timer del: 496: 2616202381
2017/12/28 07:04:45 [debug] 14640#9400: *3695 select del event fd:496 ev:0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 reusable connection: 0
2017/12/28 07:04:45 [debug] 14640#9400: *3695 free: 02D4CF80
2017/12/28 07:04:45 [debug] 14640#9400: *3695 free: 02D50808, unused: 28
You can use Apache as a Forward Proxy, because nginx can only be used as a reverse proxy or as a http proxy.
https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#forwardreverse
An ordinary forward proxy is an intermediate server that sits between the client and the origin server. In order to get content from the origin server, the client sends a request to the proxy naming the origin server as the target. The proxy then requests the content from the origin server and returns it to the client. The client must be specially configured to use the forward proxy to access other sites.
A typical usage of a forward proxy is to provide Internet access to internal clients that are otherwise restricted by a firewall. The forward proxy can also use caching (as provided by mod_cache) to reduce network usage.
Forward Proxy
ProxyRequests On
ProxyVia On
<Proxy "*">
Require host internal.example.com
</Proxy>
As mentioned in one reply, I also faced the same issue with nginx setup so we have done the setup using Apache and wrote a article for the community about steps, which worked for us. Please check it out - https://medium.com/#gaurav.k.sarawgi/use-apache-to-create-forward-proxy-server-on-ubuntu-3299ef91a7cb
I've tried to enable Basic Application Authenticity for the sample "OfflineAuthentication" hybrid iOS app. However, the adapter call fails, any ideas?
Here's the code:
authenticationConfig.xml:
<customSecurityTest name="myCustomSecurityTest">
<test realm="wl_authenticityRealm" step="1"/>
<test isInternalUserID="true" realm="myCustomRealm"/>
<test isInternalDeviceID="true" realm="wl_deviceNoProvisioningRealm" step="2"/>
</customSecurityTest>
<!--DO i need to include wl_authenticityRealm here as well?-->
<customSecurityTest name="SubscribeServlet">
<test isInternalUserID="true" realm="SubscribeServlet"/>
</customSecurityTest>
application-descriptor.xml:
<iphone bundleId="com.OfflineAuthSample" applicationId="OfflineAuthSample" version="1.0" securityTest="myCustomSecurityTest">
MobileFirst Console shows basic app authenticity is enabled
Here's the log:
2016-10-01 18:20:34.518875 OfflineAuthSample[3807:1252807] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/7F4A0DF9-95B0-4C21-AC73-9A758BAD1DE9/Library/Cookies/Cookies.binarycookies 2016-10-01 18:20:34.647379 OfflineAuthSample[3807:1252807] [DEBUG] [WL_SPLASH] -[WLSplashView updateImage] in WLSplashView.m:189 :: Splash screen image is taken from UILaunchImages: Default-736h 2016-10-01 18:20:34.681607 OfflineAuthSample[3807:1252807] [DEBUG] [WL_SPLASH] -[WLSplashView updateImage] in WLSplashView.m:189 :: Splash screen image is taken from UILaunchImages: Default-736h 2016-10-01 18:20:34.683230 OfflineAuthSample[3807:1252807] Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x10090d0c0>. 2016-10-01 18:20:34.701919 OfflineAuthSample[3807:1252879] [DEBUG] [WL_CONFIG] -[WLConfig init] in WLConfig.m:71 :: {
"application id" = OfflineAuthSample;
"application version" = "1.0";
authenticitySharedData = "${authenticitySharedData}";
buildtime = 1475317232;
environment = iphone;
host = "52.77.249.78";
ignoredFileExtensions = "";
platformVersion = "7.1.0.0";
port = 9080;
protocol = http;
testWebResourcesChecksum = false;
wlAppFamily = "";
wlMainFile = "index.html";
wlSecureDirectUpdatePublicKey = "";
wlServerContext = "/testssl/";
wlShareCookies = "";
wlShareUserCert = false;
wlUid = "dB6EhEirkRwkU04A5lgiRw=="; } 2016-10-01 18:20:34.703147 OfflineAuthSample[3807:1252879] [DEBUG] [WL_INIT] -[WLImpl initWL] in WLImpl.m:127 :: At first launch 2016-10-01 18:20:34.706276 OfflineAuthSample[3807:1252879] [DEBUG] [WL_INIT] -[WLImpl initWL] in WLImpl.m:153 :: Web resources should not be extracted. 2016-10-01 18:20:34.902355 OfflineAuthSample[3807:1252807] Apache Cordova native platform version 3.7.0 is starting. 2016-10-01 18:20:34.902559 OfflineAuthSample[3807:1252807] Multi-tasking -> Device: YES, App: YES 2016-10-01 18:20:34.908168 OfflineAuthSample[3807:1252807] Unlimited access to network resources 2016-10-01 18:20:34.910140 OfflineAuthSample[3807:1252807]
Started backup to iCloud! Please be careful. Your application might be rejected by Apple if you store too much data. For more information please read "iOS Data Storage Guidelines" at: https://developer.apple.com/icloud/documentation/data-storage/ To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file
2016-10-01 18:20:34.916050 OfflineAuthSample[3807:1252807] [CDVTimer][wlapp] 0.979006ms 2016-10-01 18:20:34.916196 OfflineAuthSample[3807:1252807] [CDVTimer][push] 0.092983ms 2016-10-01 18:20:34.916226 OfflineAuthSample[3807:1252807] [CDVTimer][TotalPluginStartup] 1.177967ms 2016-10-01 18:20:35.073631 OfflineAuthSample[3807:1252807] Resetting plugins due to page load. 2016-10-01 18:20:35.123413 OfflineAuthSample[3807:1252807] Finished load of: file:///var/containers/Bundle/Application/A7F58C8C-D71F-4178-A912-3138602AF24A/OfflineAuthSample.app/www/skinLoader.html 2016-10-01 18:20:35.239499 OfflineAuthSample[3807:1252807] Resetting plugins due to page load. 2016-10-01 18:20:35.332761 OfflineAuthSample[3807:1252807] Finished load of: file:///var/containers/Bundle/Application/A7F58C8C-D71F-4178-A912-3138602AF24A/OfflineAuthSample.app/www/default/index.html 2016-10-01 18:20:35.366708 OfflineAuthSample[3807:1252807] log1 2016-10-01 18:20:35.383488 OfflineAuthSample[3807:1252854] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:35.805118 OfflineAuthSample[3807:1252880] [DEBUG] [NONE] wlclient init started 2016-10-01 18:20:35.806879 OfflineAuthSample[3807:1252852] [DEBUG] [NONE] ondeviceready event dispatched 2016-10-01 18:20:35.808544 OfflineAuthSample[3807:1252854] [DEBUG] [NONE] Read cookies: null 2016-10-01 18:20:35.810495 OfflineAuthSample[3807:1252860] [DEBUG] [NONE] CookieMgr read cookies: {} 2016-10-01 18:20:35.812504 OfflineAuthSample[3807:1252855] [DEBUG] [NONE] before: initOptions.onSuccess 2016-10-01 18:20:35.814665 OfflineAuthSample[3807:1252853] [DEBUG] [NONE] after: initOptions.onSuccess 2016-10-01 18:20:35.816615 OfflineAuthSample[3807:1252880] [DEBUG] [NONE] added onPause and onResume event handlers 2016-10-01 18:20:35.818603 OfflineAuthSample[3807:1252934] [DEBUG] [NONE] wlclient init success 2016-10-01 18:20:37.650366 OfflineAuthSample[3807:1252807] WLReachability Flag Status: WR t------ networkStatusForFlags 2016-10-01 18:20:37.664856 OfflineAuthSample[3807:1252807] THREAD WARNING: ['NetworkDetector'] took '15.065186' ms. Plugin should use a background thread. 2016-10-01 18:20:37.666274 OfflineAuthSample[3807:1252852] [ERROR] [NONE] Unknown realm [myCustomRealm]. null returned for key: isUserAuthenticated 2016-10-01 18:20:37.667460 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT]
+[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:37.669136 OfflineAuthSample[3807:1252880] [DEBUG] [NONE] Request [/apps/services/api/OfflineAuthSample/iphone/login] 2016-10-01 18:20:37.675317 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager removeCertificate:] in WLCertManager.m:243 :: Certificate successfully removed. 2016-10-01 18:20:37.686451 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager removeKey:] in WLCertManager.m:262 :: Key was successfully removed. 2016-10-01 18:20:37.691977 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager removeKey:] in WLCertManager.m:262 :: Key was successfully removed. 2016-10-01 18:20:37.708057 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT]
+[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:37.709332 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AUTH] -[WLAuthorizationManager invokeInstanceRegistrationRequestWithCompletionHandler:] in WLAuthorizationManager.m:548 :: Call instance registration endpoint 2016-10-01 18:20:37.750096 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager generateKeyPair:withPublicKeyLabel:withKeySize:] in WLCertManager.m:225 :: generateKeyPair generating keypair --> Success 2016-10-01 18:20:37.756561 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:37.757615 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
+[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:37.759117 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:37.760509 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST]
-[WLRequest sendRequest:path:withOptions:] in WLRequest.m:221 :: Sending request (http://52.77.249.78:9080/testssl/authorization/v1/clients/instance) with headers: {
"Accept-Language" = "en-US";
"User-Agent" = "OfflineAuthSample/1.0 (iPhone; iOS 10.0.1; Scale/3.00)/WLNativeAPI/7.1.0.0";
"X-Requested-With" = XMLHttpRequest;
"x-wl-app-version" = "1.0";
"x-wl-device-id" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB";
"x-wl-platform-version" = "7.1.0.0"; } You can see the request body in the Analytics platform logs. 2016-10-01 18:20:37.765230 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:37.766217 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:231 :: waiting for response... (Thread=<NSThread: 0x174073a00>{number = 1, name = main}) 2016-10-01 18:20:37.767243 OfflineAuthSample[3807:1252807] THREAD WARNING: ['WLAuthorizationManagerPlugin'] took '101.814941' ms. Plugin should use a background thread. 2016-10-01 18:20:38.649720 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFailed:error:] in WLAFHTTPRequestOperationManagerWrapper.m:352 :: Request Failed 2016-10-01 18:20:38.651924 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFailed:error:] in WLAFHTTPRequestOperationManagerWrapper.m:353 :: Response Status Code : 401 2016-10-01 18:20:38.653315 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFailed:error:] in WLAFHTTPRequestOperationManagerWrapper.m:354 :: Response Error : Request failed: unauthorized (401) 2016-10-01 18:20:38.656197 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:38.663312 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
+[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:38.665685 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:38.667459 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST]
-[WLRequest sendRequest:path:withOptions:] in WLRequest.m:221 :: Sending request (http://52.77.249.78:9080/testssl/authorization/v1/clients/instance) with headers: {
"Accept-Language" = "en-US";
Authorization = "{\"wl_authenticityRealm\":\"1cmUeOcbV/wyYuPi6FRi7/cndEWc8Jg/umF6tuIiUTo=\"}";
"User-Agent" = "OfflineAuthSample/1.0 (iPhone; iOS 10.0.1; Scale/3.00)/WLNativeAPI/7.1.0.0";
"X-Requested-With" = XMLHttpRequest;
"x-wl-app-version" = "1.0";
"x-wl-device-id" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB";
"x-wl-platform-version" = "7.1.0.0"; } You can see the request body in the Analytics platform logs. 2016-10-01 18:20:38.670973 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:38.672750 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:231 :: waiting for response... (Thread=<NSThread: 0x174073a00>{number = 1, name = main}) 2016-10-01 18:20:38.850841 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:38.852492 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 200 2016-10-01 18:20:38.856083 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : {"certificate":"MIICeDCCAWCgAwIBAgIJANfoTRSlEd4vMA0GCSqGSIb3DQEBCwUAMGAxCzAJBgNVBAYTAklMMQswCQYDVQQIEwJJTDERMA8GA1UEBxMIU2hlZmF5aW0xDDAKBgNVBAoTA0lCTTESMBAGA1UECxMJV29ya2xpZ2h0MQ8wDQYDVQQDEwZXTCBEZXYwIBcNMTYxMDAxMTAyMDI5WhgPMjA2NjEwMDExMDIwMjlaMF0xITAfBgoJkiaJk\/IsZAEZFhFPZmZsaW5lQXV0aFNhbXBsZTE4MDYGCgmSJomT8ixkAQETKDdmM2U1ZTc3NmY3OTczMDA1YTFiYTU4MWQ5ZTRmYzIwZDZiMjA2N2IwXDANBgkqhkiG9w0BAQEFAANLADBIAkEAjspPlIymI497gJwvz8wN5kz5elteLzpNgR\/CMWFIZ3fESDPqa+pyOoUq27MzlhCeF5qCsOQRirOpxCTEiFQwfwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCtyM9ayMRlrefJ\/\/9TpGg33Gez\/WiAnOsRLSzCmQGL36Sycny4WrTMKITNSIC9Lgu92PL6lIgqzRUVsepq2\/AXizsZwrjkpFAC4gqzjcgs2C9w+FTRHROayP7xdk532ohL8Q9MyFZjKCkiEJCbLjbWsfywsntmLUHBeg0SehZM\/F5Zv7OD5xTI1mmmjV+\/E12WKwKskXkkJdIAEv+cw1EHYPkr7zzG51jisoK7f+DhMNDAeKJWCxksJycOba0f\/TCHQY\/ssrSwELJs9wD2PGOR030HCXS3xFGVwMDHGXR+t8OKM3Vp45w8sTmE6IQCB7fLL\/G\/0SouTIyAQA9xDI7y"} 2016-10-01 18:20:38.858704 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:38.862329 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:365 :: Response Header: {
"Content-Length" = 878;
"Content-Type" = "application/json;charset=UTF-8";
Date = "Sat, 01 Oct 2016 10:20:29 GMT";
"X-Powered-By" = "Servlet/3.0"; } Response Data: {"certificate":"MIICeDCCAWCgAwIBAgIJANfoTRSlEd4vMA0GCSqGSIb3DQEBCwUAMGAxCzAJBgNVBAYTAklMMQswCQYDVQQIEwJJTDERMA8GA1UEBxMIU2hlZmF5aW0xDDAKBgNVBAoTA0lCTTESMBAGA1UECxMJV29ya2xpZ2h0MQ8wDQYDVQQDEwZXTCBEZXYwIBcNMTYxMDAxMTAyMDI5WhgPMjA2NjEwMDExMDIwMjlaMF0xITAfBgoJkiaJk\/IsZAEZFhFPZmZsaW5lQXV0aFNhbXBsZTE4MDYGCgmSJomT8ixkAQETKDdmM2U1ZTc3NmY3OTczMDA1YTFiYTU4MWQ5ZTRmYzIwZDZiMjA2N2IwXDANBgkqhkiG9w0BAQEFAANLADBIAkEAjspPlIymI497gJwvz8wN5kz5elteLzpNgR\/CMWFIZ3fESDPqa+pyOoUq27MzlhCeF5qCsOQRirOpxCTEiFQwfwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCtyM9ayMRlrefJ\/\/9TpGg33Gez\/WiAnOsRLSzCmQGL36Sycny4WrTMKITNSIC9Lgu92PL6lIgqzRUVsepq2\/AXizsZwrjkpFAC4gqzjcgs2C9w+FTRHROayP7xdk532ohL8Q9MyFZjKCkiEJCbLjbWsfywsntmLUHBeg0SehZM\/F5Zv7OD5xTI1mmmjV+\/E12WKwKskXkkJdIAEv+cw1EHYPkr7zzG51jisoK7f+DhMNDAeKJWCxks 2016-10-01 18:20:38.865610 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:424 :: NSS object is null 2016-10-01 18:20:38.873479 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] BOOL hasCertificateExpired(X509 *) in WLCertManager.m:647 :: Certificate currentDate: 2016-10-01 10:20:38 +0000, expiryDate: 2066-10-01 10:20:29 +0000 2016-10-01 18:20:38.877528 OfflineAuthSample[3807:1252807] [WARN] [CERTIFICATE_MANAGER]
+[WLCertManager isCertificateVerified:] in WLCertManager.m:572 :: Verification failure: unable to verify the first certificate 2016-10-01 18:20:38.883162 OfflineAuthSample[3807:1252807] [DEBUG] [CERTIFICATE_MANAGER] +[WLCertManager saveCertificate:withLabel:] in WLCertManager.m:78 :: Certificate saved. 2016-10-01 18:20:38.900978 OfflineAuthSample[3807:1252852] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
+[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/apps/services/api/OfflineAuthSample/iphone/login 2016-10-01 18:20:38.903341 OfflineAuthSample[3807:1252852] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/apps/services/api/OfflineAuthSample/iphone/login 2016-10-01 18:20:39.048286 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:39.049534 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 200 2016-10-01 18:20:39.052398 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : /*-secure- {"errorMessage":null,"isSuccessful":true,"authRequired":true}*/ 2016-10-01 18:20:40.510105 OfflineAuthSample[3807:1252807] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2016-10-01 18:20:40.519465 OfflineAuthSample[3807:1252807] [MC] Reading from public effective user settings. 2016-10-01 18:20:47.358122 OfflineAuthSample[3807:1252880] [DEBUG] [NONE] establishSSLClientAuth 2016-10-01 18:20:47.359112 OfflineAuthSample[3807:1252807] [WARN] [USER_CERT_AUTH]
+[WLUserAuthManager getCertificateIdentifier] in WLUserAuthManager.m:68 :: Certificate Identifier Key: com.worklight.userenrollment.certificate:com.OfflineAuthSample 2016-10-01 18:20:47.360715 OfflineAuthSample[3807:1252855] 0x17414a3a0 Copy matching assets reply: XPC_TYPE_DICTIONARY <dictionary: 0x17414a3a0> { count = 1, transaction: 0, voucher = 0x0, contents = "Result" => <int64: 0x174224a60>: 29 } 2016-10-01 18:20:47.362028 OfflineAuthSample[3807:1252855] 0x17414a030 Daemon configuration query reply: XPC_TYPE_DICTIONARY <dictionary: 0x17414a030> { count = 2, transaction: 0, voucher = 0x0, contents = "Dictionary" => <dictionary: 0x17414aa80> { count = 1, transaction: 0, voucher = 0x0, contents = "ServerURL" => <dictionary: 0x1741497f0> { count = 3, transaction: 0, voucher = 0x0, contents = "com.apple.CFURL.magic"
=> <uuid: 0x174243db0> C3853DCC-9776-4114-B6C1-FD9F51944A6D "com.apple.CFURL.string" => <string: 0x174247080> { length = 30, contents = "https://mesu.apple.com/assets/" } "com.apple.CFURL.base" => <null: 0x1b0757e80>: null-object } } "Result" => <int64: 0x174229900>: 0 } 2016-10-01 18:20:47.362292 OfflineAuthSample[3807:1252855] [MobileAssetError:29] Unable to copy asset information from https://mesu.apple.com/assets/ for asset type com.apple.MobileAsset.TextInput.SpellChecker 2016-10-01 18:20:47.364273 OfflineAuthSample[3807:1252855] [DEBUG] [NONE] establishSSLClientAuth isCertificateExists: false 2016-10-01 18:20:47.365370 OfflineAuthSample[3807:1252853] [DEBUG] [NONE] Request [/apps/services/../../invoke] 2016-10-01 18:20:47.373678 OfflineAuthSample[3807:1252853] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
+[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/invoke 2016-10-01 18:20:47.375603 OfflineAuthSample[3807:1252853] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/invoke 2016-10-01 18:20:48.300515 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:48.302971 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 200 2016-10-01 18:20:48.306128 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : /*-secure- {"challenges":{"wl_antiXSRFRealm":{"WL-Instance-Id":"ib694qt4eqq93i5magp7iqf5qh"}}}*/ 2016-10-01 18:20:48.329077 OfflineAuthSample[3807:1253047] [DEBUG] [NONE] response [/apps/services/../../invoke] success: /*-secure- {"challenges":{"wl_antiXSRFRealm":{"WL-Instance-Id":"ib694qt4eqq93i5magp7iqf5qh"}}}*/ 2016-10-01 18:20:48.329486 OfflineAuthSample[3807:1252807] No matching configurations found from the server. Defaulting to local configuration 2016-10-01 18:20:48.341231 OfflineAuthSample[3807:1253047] [TRACE] [WL_AUTH]
-[WLDeviceAuthManager getWLUniqueDeviceId] in WLDeviceAuthManager.m:71 :: returning UUID from the keychain 2016-10-01 18:20:48.346860 OfflineAuthSample[3807:1253047] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
+[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/apps/services/loguploader 2016-10-01 18:20:48.349978 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST]
-[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:48.352905 OfflineAuthSample[3807:1253047] [TRACE] [WL_AUTH]
-[WLDeviceAuthManager getWLUniqueDeviceId] in WLDeviceAuthManager.m:71 :: returning UUID from the keychain 2016-10-01 18:20:48.356290 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:221 :: Sending request (http://52.77.249.78:9080/testssl/apps/services/loguploader) with headers: {
"Accept-Language" = "en-US";
"Content-Encoding" = gzip;
"Content-Type" = "application/json";
"User-Agent" = "OfflineAuthSample/1.0 (iPhone; iOS 10.0.1; Scale/3.00)/WLNativeAPI/7.1.0.0";
"X-Requested-With" = XMLHttpRequest;
"x-wl-app-version" = "1.0";
"x-wl-clientlog-appname" = OfflineAuthSample;
"x-wl-clientlog-appversion" = "1.0";
"x-wl-clientlog-deviceId" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB";
"x-wl-clientlog-env" = iphone;
"x-wl-clientlog-model" = "iPhone8,2";
"x-wl-clientlog-osversion" = "10.0.1";
"x-wl-compressed" = true;
"x-wl-device-id" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB";
"x-wl-platform-version" = "7.1.0.0"; } You can see the request body in the Analytics platform logs. 2016-10-01 18:20:48.375203 OfflineAuthSample[3807:1253047] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/apps/services/loguploader 2016-10-01 18:20:48.377642 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:231 :: waiting for response... (Thread=<NSThread: 0x17427f140>{number = 14, name = (null)}) 2016-10-01 18:20:48.382231 OfflineAuthSample[3807:1253047] [TRACE] [WL_AUTH]
-[WLDeviceAuthManager getWLUniqueDeviceId] in WLDeviceAuthManager.m:71 :: returning UUID from the keychain 2016-10-01 18:20:48.384336 OfflineAuthSample[3807:1253047] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
+[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/apps/services/loguploader 2016-10-01 18:20:48.388040 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST]
-[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:48.390529 OfflineAuthSample[3807:1253047] [TRACE] [WL_AUTH]
-[WLDeviceAuthManager getWLUniqueDeviceId] in WLDeviceAuthManager.m:71 :: returning UUID from the keychain 2016-10-01 18:20:48.392962 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:221 :: Sending request (http://52.77.249.78:9080/testssl/apps/services/loguploader) with headers: { "Accept-Language" = "en-US"; "Content-Encoding" = gzip; "Content-Type" = "application/json"; "User-Agent" = "OfflineAuthSample/1.0 (iPhone; iOS 10.0.1; Scale/3.00)/WLNativeAPI/7.1.0.0"; "X-Requested-With" = XMLHttpRequest; "x-wl-app-version" = "1.0"; "x-wl-clientlog-appname" = OfflineAuthSample; "x-wl-clientlog-appversion" = "1.0"; "x-wl-clientlog-deviceId" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB"; "x-wl-clientlog-env" = iphone; "x-wl-clientlog-model" = "iPhone8,2"; "x-wl-clientlog-osversion" = "10.0.1"; "x-wl-compressed" = true; "x-wl-device-id" = "A886EC57-DA81-4CF0-8F2D-9A2378124BCB"; "x-wl-platform-version" = "7.1.0.0"; } You can see the request body in the Analytics platform logs. 2016-10-01 18:20:48.407261 OfflineAuthSample[3807:1253047] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:320 :: Starting the request with URL http://52.77.249.78:9080/testssl/apps/services/loguploader 2016-10-01 18:20:48.409068 OfflineAuthSample[3807:1253047] [DEBUG] [WL_REQUEST] __42-[WLRequest sendRequest:path:withOptions:]_block_invoke in WLRequest.m:231 :: waiting for response... (Thread={number = 14, name = (null)}) 2016-10-01 18:20:48.609066 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:48.611440 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 201 2016-10-01 18:20:48.614530 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : 2016-10-01 18:20:48.618208 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:48.620666 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:365 :: Response Header: { "Content-Language" = "en-US"; "Content-Length" = 0; Date = "Sat, 01 Oct 2016 10:20:39 GMT"; P3P = "policyref=\"/w3c/p3p.xml\", CP=\"CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE\""; "X-Powered-By" = "Servlet/3.0"; } Response Data: Status code=201 2016-10-01 18:20:48.623068 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:424 :: NSS object is null 2016-10-01 18:20:48.625059 OfflineAuthSample[3807:1252807] [DEBUG] [OCLogger] Client Logs successfully sent to server. 2016-10-01 18:20:48.718881 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:333 :: Request Success 2016-10-01 18:20:48.721363 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:334 :: Response Status Code : 201 2016-10-01 18:20:48.724519 OfflineAuthSample[3807:1252807] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE]
-[WLAFHTTPRequestOperationManagerWrapper requestFinished:] in WLAFHTTPRequestOperationManagerWrapper.m:335 :: Response Content : 2016-10-01 18:20:48.728144 OfflineAuthSample[3807:1252807] [DEBUG] [WORKLIGHT] +[WLClient sharedInstance] in WLClient.m:165 :: IBMMobilieFirstFoundation.framework version = 7.1-2015/09/14 00:19:02 2016-10-01 18:20:48.730032 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:365 :: Response Header: { "Content-Language" = "en-US"; "Content-Length" = 0; Date = "Sat, 01 Oct 2016 10:20:39 GMT"; P3P = "policyref=\"/w3c/p3p.xml\", CP=\"CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE\""; "X-Powered-By" = "Servlet/3.0"; } Response Data: Status code=201 2016-10-01 18:20:48.732786 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest requestFinished:] in WLRequest.m:424 :: NSS
From the log, the error is:
+[WLAFHTTPRequestOperationManagerWrapper requestWithURL:] in WLAFHTTPRequestOperationManagerWrapper.m:52 :: Request url is http://52.77.249.78:9080/testssl/authorization/v1/clients/instance 2016-10-01 18:20:38.665685 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST] -[WLRequest sendRequest:path:withOptions:] in WLRequest.m:142 :: Request timeout is 10.000000 2016-10-01 18:20:38.667459 OfflineAuthSample[3807:1252807] [DEBUG] [WL_REQUEST]
The request seems to have timed out. You should change your network, why would the request time out with the server you're using.
I also see that you're using a device running iOS 10, in which case you should also handle Apple's changed behavior in regards to ATS (Application Transport Security) starting iOS 9.
Read more about ATS in MobileFirst Platform Foundation: https://mobilefirstplatform.ibmcloud.com/blog/2015/09/09/ats-and-bitcode-in-ios9/