WL.Client.connect onSuccess callback does not get called - ibm-mobilefirst

Given the following code, the onSuccess is not being called back on a successful connect. I've listed the code and log output for the sequence of events. Is the code set up wrong? connectOnStartup is set to false in the initOptions. This code is also in the Shell project with the logcat coming from the Inner project using the Shell:
function onConnectSuccess(){
console.log ("CSXMobile:onConnectSuccess");
WL.Logger.debug("CSXMobile:onConnectSuccess");
}
function onConnectFailure(){
WL.Logger.debug("CSXMobile:onConnectFailure");
}
function disconnectDetected(){
WL.Logger.debug("CSXMobile:disconnectDetected");
}
function connectDetected(){
WL.Logger.debug("CSXMobile:connectDetected");
}
function wlCommonInit(){
WL.Logger.debug("CSXMobile:wlCommonInit");
document.addEventListener(WL.Events.WORKLIGHT_IS_CONNECTED, connectDetected, false);
document.addEventListener(WL.Events.WORKLIGHT_IS_DISCONNECTED, disconnectDetected , false);
WL.Client.connect({
onSuccess: onConnectSuccess,
onFailure: onConnectFailure
});
}
As seen in the logs here wlCommonInit is being called and logged, but the log statements in the onConnectSuccess is never written...
11-21 13:49:01.460: D/CSXMobileShellTest(6341): wlclient init started
11-21 13:49:01.460: D/CSXMobileShellTest(6341): Read cookies: null
11-21 13:49:01.460: D/CSXMobileShellTest(6341): CookieMgr read cookies: {}
11-21 13:49:01.507: D/dalvikvm(6341): GC_CONCURRENT freed 311K, 4% free 11407K/11783K, paused 2ms+16ms, total 34ms
11-21 13:49:01.507: D/CordovaNetworkManager(6341): Connection Type: wifi
11-21 13:49:01.507: D/DroidGap(6341): onMessage(networkconnection,wifi)
11-21 13:49:01.507: D/DroidGap(6341): onMessage(spinner,stop)
11-21 13:49:01.507: D/CordovaLog(6341): CSXMobile:csxmobileDeviceReady
11-21 13:49:01.507: I/Web Console(6341): CSXMobile:csxmobileDeviceReady at file:///data/data/com.csx.CSXMobileShellTest/files/www/default/js/CSXMobile.js:172
11-21 13:49:01.538: D/CSXMobileShellTest(6341): CSXMobile:deviceOnline
11-21 13:49:01.546: D/CSXMobileShellTest(6341): before: app init onSuccess
11-21 13:49:01.546: D/CSXMobileShellTest(6341): CSXMobile:wlCommonInit
11-21 13:49:01.561: D/CSXMobileShellTest(6341): Request [https://myworklightserver/query]
11-21 13:49:01.585: D/CSXMobileShellTest(6341): after: app init onSuccess
11-21 13:49:01.585: D/CSXMobileShellTest(6341): added onPause event handler
11-21 13:49:01.585: D/CSXMobileShellTest(6341): wlclient init success
11-21 13:49:01.858: D/CSXMobileShellTest(6341): isCustomResponse
11-21 13:49:01.858: D/CSXMobileShellTest(6341): isCustomResponse true
11-21 13:49:01.858: D/CSXMobileShellTest(6341): handleChallenge
11-21 14:14:57.796: D/DroidGap(6656): onMessage(spinner,stop)
11-21 14:15:08.975: D/CSXMobileShellTest(6656): Request [login]
11-21 14:15:09.132: D/CSXMobileShellTest(6656): Status =401
11-21 14:15:09.132: D/CSXMobileShellTest(6656): isCustomResponse
11-21 14:15:09.139: D/CSXMobileShellTest(6656): isCustomResponse false
11-21 14:15:09.147: D/CSXMobileShellTest(6656): Request [https://myworklightserver/query]
11-21 14:15:09.163: D/CSXMobileShellTest(6656): hideLogin
11-21 14:15:09.413: D/Cordova(6656): onPageFinished(file:///data/data/com.csx.CSXMobileShellTest/files/www/default/CSXMobileShellTest.html#testMainPage)
11-21 14:15:09.413: D/Cordova(6656): Trying to fire onNativeReady
11-21 14:15:09.413: D/DroidGap(6656): onMessage(onNativeReady,null)
11-21 14:15:09.413: D/DroidGap(6656): onMessage(onPageFinished,file:///data/data/com.csx.CSXMobileShellTest/files/www/default/CSXMobileShellTest.html#testMainPage)
11-21 14:15:09.475: D/CSXMobileShellTest(6656): Request [https://myworklightserver/query]
11-21 14:15:09.522: D/CSXMobileShellTest(6656): Request [https://myworklightserver/query]
11-21 14:15:09.616: D/CSXMobileShellTest(6656): isCustomResponse
11-21 14:15:09.616: D/CSXMobileShellTest(6656): isCustomResponse false
11-21 14:15:09.616: D/CSXMobileShellTest(6656): CSXMobile:connectDetected
11-21 14:15:09.647: D/CSXMobileShellTest(6656): response [https://myworklightserver/query] success: /*-secure-

I was able to ping a contact at IBM and get feedback. We are implementing the challengeHandler in conjunction with WL.Client.createChallengeHandler. One of the key items I omitted was doing a challengeHandler.submitSuccess(); after a successful login. Once I added that line in the successful login routine, everything worked fine.

Related

authenticate against sonatype ossindex with maven plugin

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...

How do I specify a FIPS endpoint url in a boto3 S3 client configuration?

I am currently attempting to configure my boto3 client to connect using a custom endpoint URL for FIPS. https://aws.amazon.com/compliance/fips/
I have the following code that works with boto3 for EC2.
ec2_client.py
import boto3
from botocore.config import Config
config = Config(
retries = dict(
max_attempts = 1
)
)
boto3.set_stream_logger(name='botocore')
ec2_client = boto3.client(
service_name='ec2',
endpoint_url='https://ec2-fips.us-east-1.amazonaws.com',
config=config
)
ec2_client.describe_regions()
Output:
$ python ec2_client.py
2019-08-22 17:35:55,183 botocore.hooks [DEBUG] Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2019-08-22 17:35:55,187 botocore.hooks [DEBUG] Changing event name from before-call.apigateway to before-call.api-gateway
2019-08-22 17:35:55,187 botocore.hooks [DEBUG] Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2019-08-22 17:35:55,189 botocore.hooks [DEBUG] Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2019-08-22 17:35:55,190 botocore.hooks [DEBUG] Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2019-08-22 17:35:55,190 botocore.hooks [DEBUG] Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
2019-08-22 17:35:55,191 botocore.hooks [DEBUG] Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
2019-08-22 17:35:55,193 botocore.hooks [DEBUG] Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
2019-08-22 17:35:55,193 botocore.hooks [DEBUG] Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
2019-08-22 17:35:55,194 botocore.hooks [DEBUG] Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
2019-08-22 17:35:55,194 botocore.hooks [DEBUG] Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
2019-08-22 17:35:55,218 botocore.credentials [DEBUG] Looking for credentials via: env
2019-08-22 17:35:55,219 botocore.credentials [DEBUG] Looking for credentials via: assume-role
2019-08-22 17:35:55,219 botocore.credentials [DEBUG] Looking for credentials via: shared-credentials-file
2019-08-22 17:35:55,220 botocore.credentials [INFO] Found credentials in shared credentials file: ~/.aws/credentials
2019-08-22 17:35:55,220 botocore.loaders [DEBUG] Loading JSON file: /Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/data/endpoints.json
2019-08-22 17:35:55,226 botocore.hooks [DEBUG] Event choose-service-name: calling handler <function handle_service_name_alias at 0x1056ae488>
2019-08-22 17:35:55,244 botocore.loaders [DEBUG] Loading JSON file: /Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/data/ec2/2016-11-15/service-2.json
2019-08-22 17:35:55,275 botocore.hooks [DEBUG] Event creating-client-class.ec2: calling handler <function add_generate_presigned_url at 0x10577de18>
2019-08-22 17:35:55,275 botocore.args [DEBUG] The s3 config key is not a dictionary type, ignoring its value of: None
2019-08-22 17:35:55,280 botocore.endpoint [DEBUG] Setting ec2 timeout as (60, 60)
2019-08-22 17:35:55,281 botocore.loaders [DEBUG] Loading JSON file: /Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/data/_retry.json
2019-08-22 17:35:55,282 botocore.client [DEBUG] Registering retry handlers for service: ec2
2019-08-22 17:35:55,283 botocore.hooks [DEBUG] Event before-parameter-build.ec2.DescribeRegions: calling handler <bound method ParameterAlias.alias_parameter_in_call of <botocore.handlers.ParameterAlias object at 0x1057e6438>>
2019-08-22 17:35:55,283 botocore.hooks [DEBUG] Event before-parameter-build.ec2.DescribeRegions: calling handler <function generate_idempotent_uuid at 0x1057deea0>
2019-08-22 17:35:55,283 botocore.hooks [DEBUG] Event before-call.ec2.DescribeRegions: calling handler <function inject_api_version_header_if_needed at 0x1057e29d8>
2019-08-22 17:35:55,283 botocore.endpoint [DEBUG] Making request for OperationModel(name=DescribeRegions) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': 'Boto3/1.9.6 Python/3.6.3 Darwin/18.7.0 Botocore/1.12.146'}, 'body': {'Action': 'DescribeRegions', 'Version': '2016-11-15'}, 'url': 'https://ec2-fips.us-east-1.amazonaws.com/', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x106d3a4a8>, 'has_streaming_input': False, 'auth_type': None}}
2019-08-22 17:35:55,283 botocore.hooks [DEBUG] Event request-created.ec2.DescribeRegions: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x106d3a438>>
2019-08-22 17:35:55,284 botocore.hooks [DEBUG] Event choose-signer.ec2.DescribeRegions: calling handler <function set_operation_specific_signer at 0x1057ded90>
2019-08-22 17:35:55,284 botocore.auth [DEBUG] Calculating signature using v4 auth.
2019-08-22 17:35:55,285 botocore.auth [DEBUG] CanonicalRequest:
POST
/
content-type:application/x-www-form-urlencoded; charset=utf-8
host:ec2-fips.us-east-1.amazonaws.com
x-amz-date:20190822T213555Z
x-amz-security-token:__xxx__
content-type;host;x-amz-date;x-amz-security-token
__xxx__
2019-08-22 17:35:55,285 botocore.auth [DEBUG] StringToSign:
AWS4-HMAC-SHA256
20190822T213555Z
20190822/us-east-1/ec2/aws4_request
791b3e04eac140d25ccb2c00d0d2489c3bab1cccf619bfa5df7a8d22a5826d7f
2019-08-22 17:35:55,285 botocore.auth [DEBUG] Signature:
__xxx__
2019-08-22 17:35:55,285 botocore.endpoint [DEBUG] Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://ec2-fips.us-east-1.amazonaws.com/, headers={'Content-Type': b'application/x-www-form-urlencoded; charset=utf-8', 'User-Agent': b'Boto3/1.9.6 Python/3.6.3 Darwin/18.7.0 Botocore/1.12.146', 'X-Amz-Date': b'20190822T213555Z', 'X-Amz-Security-Token': b'__xxx__', 'Authorization': b'AWS4-HMAC-SHA256 Credential=__xxx__/20190822/us-east-1/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token, Signature=__xxx__', 'Content-Length': '41'}>
2019-08-22 17:35:55,495 botocore.parsers [DEBUG] Response headers: {'Content-Type': 'text/xml;charset=UTF-8', 'Content-Length': '3655', 'vary': 'accept-encoding', 'Date': 'Thu, 22 Aug 2019 21:35:55 GMT', 'Server': 'AmazonEC2'}
2019-08-22 17:35:55,495 botocore.parsers [DEBUG] Response body:
b'<?xml version="1.0" encoding="UTF-8"?>\n<DescribeRegionsResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">\n <requestId>1cf5ab2e-a72b-4cb7-bd77-1c9dbe1d89c1</requestId>\n <regionInfo>\n <item>\n <regionName>eu-north-1</regionName>\n <regionEndpoint>ec2.eu-north-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>ap-south-1</regionName>\n <regionEndpoint>ec2.ap-south-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>eu-west-3</regionName>\n <regionEndpoint>ec2.eu-west-3.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>eu-west-2</regionName>\n <regionEndpoint>ec2.eu-west-2.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>eu-west-1</regionName>\n <regionEndpoint>ec2.eu-west-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>ap-northeast-2</regionName>\n <regionEndpoint>ec2.ap-northeast-2.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>ap-northeast-1</regionName>\n <regionEndpoint>ec2.ap-northeast-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>sa-east-1</regionName>\n <regionEndpoint>ec2.sa-east-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>ca-central-1</regionName>\n <regionEndpoint>ec2.ca-central-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>ap-southeast-1</regionName>\n <regionEndpoint>ec2.ap-southeast-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>ap-southeast-2</regionName>\n <regionEndpoint>ec2.ap-southeast-2.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>eu-central-1</regionName>\n <regionEndpoint>ec2.eu-central-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>us-east-1</regionName>\n <regionEndpoint>ec2.us-east-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>us-east-2</regionName>\n <regionEndpoint>ec2.us-east-2.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>us-west-1</regionName>\n <regionEndpoint>ec2.us-west-1.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n <item>\n <regionName>us-west-2</regionName>\n <regionEndpoint>ec2.us-west-2.amazonaws.com</regionEndpoint>\n <optInStatus>opt-in-not-required</optInStatus>\n </item>\n </regionInfo>\n</DescribeRegionsResponse>'
2019-08-22 17:35:55,497 botocore.hooks [DEBUG] Event needs-retry.ec2.DescribeRegions: calling handler <botocore.retryhandler.RetryHandler object at 0x106d3a588>
2019-08-22 17:35:55,497 botocore.retryhandler [DEBUG] No retry needed.
I have the following code that does not work with boto3 for S3.
s3_client.py
import boto3
from botocore.config import Config
config = Config(
retries = dict(
max_attempts = 1
)
)
boto3.set_stream_logger(name='botocore')
s3_client = boto3.client(
service_name='s3',
endpoint_url='https://s3-fips.us-east-1.amazonaws.com',
config=config
)
s3_client.list_buckets()
Output: https://gist.github.com/brokenthumbs/a2e3f05c877582e92cb4d09cc9f05459
$ python s3_client.py
2019-08-22 17:41:54,834 botocore.hooks [DEBUG] Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane
2019-08-22 17:41:54,837 botocore.hooks [DEBUG] Changing event name from before-call.apigateway to before-call.api-gateway
2019-08-22 17:41:54,838 botocore.hooks [DEBUG] Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict
2019-08-22 17:41:54,840 botocore.hooks [DEBUG] Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration
2019-08-22 17:41:54,840 botocore.hooks [DEBUG] Changing event name from before-parameter-build.route53 to before-parameter-build.route-53
2019-08-22 17:41:54,840 botocore.hooks [DEBUG] Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search
2019-08-22 17:41:54,841 botocore.hooks [DEBUG] Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scaling.CreateLaunchConfiguration.complete-section
2019-08-22 17:41:54,843 botocore.hooks [DEBUG] Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask
2019-08-22 17:41:54,843 botocore.hooks [DEBUG] Changing event name from docs.*.logs.CreateExportTask.complete-section to docs.*.cloudwatch-logs.CreateExportTask.complete-section
2019-08-22 17:41:54,843 botocore.hooks [DEBUG] Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search
2019-08-22 17:41:54,843 botocore.hooks [DEBUG] Changing event name from docs.*.cloudsearchdomain.Search.complete-section to docs.*.cloudsearch-domain.Search.complete-section
2019-08-22 17:41:54,864 botocore.credentials [DEBUG] Looking for credentials via: env
2019-08-22 17:41:54,865 botocore.credentials [DEBUG] Looking for credentials via: assume-role
2019-08-22 17:41:54,865 botocore.credentials [DEBUG] Looking for credentials via: shared-credentials-file
2019-08-22 17:41:54,866 botocore.credentials [INFO] Found credentials in shared credentials file: ~/.aws/credentials
2019-08-22 17:41:54,867 botocore.loaders [DEBUG] Loading JSON file: /Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/data/endpoints.json
2019-08-22 17:41:54,872 botocore.hooks [DEBUG] Event choose-service-name: calling handler <function handle_service_name_alias at 0x10a268510>
2019-08-22 17:41:54,881 botocore.loaders [DEBUG] Loading JSON file: /Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/data/s3/2006-03-01/service-2.json
2019-08-22 17:41:54,891 botocore.hooks [DEBUG] Event creating-client-class.s3: calling handler <function add_generate_presigned_post at 0x10a33b158>
2019-08-22 17:41:54,891 botocore.hooks [DEBUG] Event creating-client-class.s3: calling handler <function lazy_call.<locals>._handler at 0x10a4020d0>
2019-08-22 17:41:54,909 botocore.hooks [DEBUG] Event creating-client-class.s3: calling handler <function add_generate_presigned_url at 0x10a335ea0>
2019-08-22 17:41:54,909 botocore.args [DEBUG] The s3 config key is not a dictionary type, ignoring its value of: None
2019-08-22 17:41:54,913 botocore.endpoint [DEBUG] Setting s3 timeout as (60, 60)
2019-08-22 17:41:54,915 botocore.loaders [DEBUG] Loading JSON file: /Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/data/_retry.json
2019-08-22 17:41:54,916 botocore.client [DEBUG] Registering retry handlers for service: s3
2019-08-22 17:41:54,917 botocore.client [DEBUG] Using S3 path style addressing.
2019-08-22 17:41:54,918 botocore.hooks [DEBUG] Event before-parameter-build.s3.ListBuckets: calling handler <function validate_bucket_name at 0x10a39a378>
2019-08-22 17:41:54,918 botocore.hooks [DEBUG] Event before-parameter-build.s3.ListBuckets: calling handler <bound method S3RegionRedirector.redirect_from_cache of <botocore.utils.S3RegionRedirector object at 0x10b1b6390>>
2019-08-22 17:41:54,918 botocore.hooks [DEBUG] Event before-parameter-build.s3.ListBuckets: calling handler <function generate_idempotent_uuid at 0x10a397f28>
2019-08-22 17:41:54,919 botocore.hooks [DEBUG] Event before-call.s3.ListBuckets: calling handler <function add_expect_header at 0x10a39a840>
2019-08-22 17:41:54,919 botocore.hooks [DEBUG] Event before-call.s3.ListBuckets: calling handler <bound method S3RegionRedirector.set_request_url of <botocore.utils.S3RegionRedirector object at 0x10b1b6390>>
2019-08-22 17:41:54,919 botocore.hooks [DEBUG] Event before-call.s3.ListBuckets: calling handler <function inject_api_version_header_if_needed at 0x10a39ba60>
2019-08-22 17:41:54,919 botocore.endpoint [DEBUG] Making request for OperationModel(name=ListBuckets) with params: {'url_path': '/', 'query_string': '', 'method': 'GET', 'headers': {'User-Agent': 'Boto3/1.9.6 Python/3.6.3 Darwin/18.7.0 Botocore/1.12.146'}, 'body': b'', 'url': 'https://s3-fips.us-east-1.amazonaws.com/', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x10b0b19e8>, 'has_streaming_input': False, 'auth_type': None, 'signing': {'bucket': None}}}
2019-08-22 17:41:54,919 botocore.hooks [DEBUG] Event request-created.s3.ListBuckets: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x10b0b14e0>>
2019-08-22 17:41:54,919 botocore.hooks [DEBUG] Event choose-signer.s3.ListBuckets: calling handler <bound method ClientCreator._default_s3_presign_to_sigv2 of <botocore.client.ClientCreator object at 0x109e0c550>>
2019-08-22 17:41:54,919 botocore.hooks [DEBUG] Event choose-signer.s3.ListBuckets: calling handler <function set_operation_specific_signer at 0x10a397e18>
2019-08-22 17:41:54,920 botocore.auth [DEBUG] Calculating signature using v4 auth.
2019-08-22 17:41:54,920 botocore.auth [DEBUG] CanonicalRequest:
GET
/
host:s3-fips.us-east-1.amazonaws.com
x-amz-content-sha256:__xxx__
x-amz-date:20190822T214154Z
x-amz-security-token:__xxx__
host;x-amz-content-sha256;x-amz-date;x-amz-security-token
__xxx__
2019-08-22 17:41:54,935 botocore.auth [DEBUG] StringToSign:
AWS4-HMAC-SHA256
20190822T214154Z
20190822/us-east-1/s3/aws4_request
__xxx__
2019-08-22 17:41:54,935 botocore.auth [DEBUG] Signature:
__xxx__
2019-08-22 17:41:54,936 botocore.endpoint [DEBUG] Sending http request: <AWSPreparedRequest stream_output=False, method=GET, url=https://s3-fips.us-east-1.amazonaws.com/, headers={'User-Agent': b'Boto3/1.9.6 Python/3.6.3 Darwin/18.7.0 Botocore/1.12.146', 'X-Amz-Date': b'20190822T214154Z', 'X-Amz-Security-Token': b'__xxx__', 'X-Amz-Content-SHA256': b'__xxx__', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIAX6MMDPJ5HINHNPVO/20190822/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=__xxx__'}>
2019-08-22 17:41:54,944 botocore.endpoint [DEBUG] Exception received when sending HTTP request.
Traceback (most recent call last):
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/httpsession.py", line 258, in send
decode_content=False,
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/util/retry.py", line 333, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
raise value
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
conn.connect()
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect
conn = self._new_conn()
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPSConnection object at 0x10b1b6ba8>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 17, in <module>
s3_client.list_buckets()
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/client.py", line 648, in _make_api_call
operation_model, request_dict, request_context)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/client.py", line 667, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/endpoint.py", line 102, in make_request
return self._send_request(request_dict, operation_model)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/endpoint.py", line 137, in _send_request
success_response, exception):
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/endpoint.py", line 231, in _needs_retry
caught_exception=caught_exception, request_dict=request_dict)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/hooks.py", line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/hooks.py", line 228, in emit
return self._emit(event_name, kwargs)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/hooks.py", line 211, in _emit
response = handler(**kwargs)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/retryhandler.py", line 183, in __call__
if self._checker(attempts, response, caught_exception):
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/retryhandler.py", line 251, in __call__
caught_exception)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/retryhandler.py", line 277, in _should_retry
return self._checker(attempt_number, response, caught_exception)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/retryhandler.py", line 317, in __call__
caught_exception)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/retryhandler.py", line 223, in __call__
attempt_number, caught_exception)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
raise caught_exception
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/endpoint.py", line 200, in _do_get_response
http_response = self._send(request)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/endpoint.py", line 244, in _send
return self.http_session.send(request)
File "/Users/meme/.pyenv/versions/3.6.3/lib/python3.6/site-packages/botocore/httpsession.py", line 278, in send
raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://s3-fips.us-east-1.amazonaws.com/"
What do I need to do differently in order to get the boto3 s3 client to connect to a FIPS endpoint? I see that the documentation states:
Note: These Endpoints can only be used with Virtual Hosted-Style addressing. For example: https://bucket.s3-fips.us-east-2.amazonaws.com. Visit the Amazon S3 Documentation page for more information.
I am unsure how this can be applied to my boto3 s3 client configuration. Any ideas on how I can correct my configuration to use FIPS correctly for s3?
Here's what I found that will address your problem.
Modify your Config object as such:
config = Config(
retries = {'max_attempts': 1},
s3 = {'addressing_style': 'virtual'}
)

Run Appiumtest on iOS Realdevice via. Intern

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

Ignite Error : Failed to finish operation (too many remaps): 32

I am loading data from kafka to ignite data streamers in parallel in multiple ignite nodes. But when I kill one of these nodes(for checking fault tolerance), I am getting following error. Some Messages are also getting lost.
class org.apache.ignite.IgniteCheckedException: Failed to finish operation (too many remaps): 32
at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl$5.apply(DataStreamerImpl.java:863)
at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl$5.apply(DataStreamerImpl.java:828)
at org.apache.ignite.internal.util.future.GridFutureAdapter$ArrayListener.apply(GridFutureAdapter.java:456)
at org.apache.ignite.internal.util.future.GridFutureAdapter$ArrayListener.apply(GridFutureAdapter.java:439)
at org.apache.ignite.internal.util.future.GridFutureAdapter.notifyListener(GridFutureAdapter.java:271)
at org.apache.ignite.internal.util.future.GridFutureAdapter.notifyListeners(GridFutureAdapter.java:259)
at org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:389)
at org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:355)
at org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:343)
at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl$Buffer.submit(DataStreamerImpl.java:1716)
at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl$Buffer.update(DataStreamerImpl.java:1416)
at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.load0(DataStreamerImpl.java:932)
at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.addData(DataStreamerImpl.java:576)
at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl.addData(DataStreamerImpl.java:544)
at org.apache.ignite.stream.StreamAdapter.addMessage(StreamAdapter.java:184)
at org.apache.ignite.stream.kafka.KafkaStreamer.access$100(KafkaStreamer.java:47)
at org.apache.ignite.stream.kafka.KafkaStreamer$1.run(KafkaStreamer.java:156)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: class org.apache.ignite.internal.cluster.ClusterTopologyCheckedException: Failed to send request (node has left): 0a04411f-a797-4526-826a-96c52549b0d0
... 11 more
[21:45:24] (err) Failed to execute compound future reducer: GridCompoundFuture [rdc=null, initFlag=1, lsnrCalls=1, done=false, cancelled=false, err=null, futs=[false, false, true, false, false, true, false, false]]class org.apache.ignite.IgniteCheckedException: DataStreamer request failed [node=f48edaa8-74df-4503-bf9b-1fdc6d642744]
at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl$Buffer.onResponse(DataStreamerImpl.java:1777)
at org.apache.ignite.internal.processors.datastreamer.DataStreamerImpl$3.onMessage(DataStreamerImpl.java:335)
at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1215)
at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:843)
at org.apache.ignite.internal.managers.communication.GridIoManager.access$2100(GridIoManager.java:108)
at org.apache.ignite.internal.managers.communication.GridIoManager$6.run(GridIoManager.java:783)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Adapter call fails after enabling Application Authenticity

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/