NSURLerrordomain error -1202 Using Appcelerator - ios

I'm working on iPhone application using Appcelerator .Every thing in app working fine .but now one alert shows in this.

A quick google search should bring you to the list of error codes
(https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/index.html#//apple_ref/doc/constant_group/URL_Loading_System_Error_Codes)
In here, we can find the following
NSURLErrorServerCertificateUntrusted = -1202
Meaning that there seems to be a problem with the server certificates.
A quick search on this error gives us a possible cause:
The time of the phone might be wrong
(One of my iPhone users gets an NSURLErrorServerCertificateUntrusted error)
EDIT
I have no experience with appcelerator. This workaround is for native only, however, the idea should be the same.
And a workaround, if you were using NSUrlConnection:
Which makes use of
NSUrlConnection -connection:didReceiveAuthenticationChallenge:
HTTPS with NSURLConnection - NSURLErrorServerCertificateUntrusted

Related

Jira board UI is not loading

Please see the questions in atlassian community: https://community.atlassian.com/t5/Jira-questions/Jira-board-UI-is-not-loading/qaq-p/2239840
This one is kinda of duplicate in stackoverflow.
I have created new free trial Jira instance recently and my first project there. I am able to create issues there, but my boards like Backlog/Active sprints/Roadmap are not loading in UI. Please see the screenshot
screen1
The issue is not gone after a few hours. I have tested it on three browsers (Firefox, Chromium, Chrome) in both incognito and common modes. Also I have tested it on my phone in browser version. None of the above helped.
In the phone app by the way I am also not able to open issues with this error.
screen2
(not sure if these issues are related or not)
Could you please advise what could be the problem and how to fix it?
there are actually some warnings, errors and 4XX and 5XX responses.
Failed to run init function: TypeError: removeOldAnalytics is not a function function() { determineStorageKey(); setTimeout(bulkPublish, 500); removeOldAnalytics(); }
{"errorMessages":["Internal server error"],"errors":{}}
{"status":"Conflict","message":"User is not enrolled in message 'devops-launch-toolchain-spotlight'","errors":[]}
{"errorMessages":["Invalid request payload. Refer to the REST API documentation and try again."]}
Uncaught (in promise) TypeError: e is undefined
IndexedDB timed out.
{"errors":{},"errorMessages":["The property isDevopsProject does not exist."],"httpStatusCode":{"empty":false,"present":true}}
Source map error: Error: request failed with status 404
Source map error: Error: NetworkError when attempting to fetch resource.
screen3
screen4
I have tested 4 browsers, incognito modes, 2 laptops and 1 phone, my wifi and mobile internet, and nothing works. Same 4XX and 5XX error everywhere. I'm a bit desperate now since I have no clue what is the problem and how to fix it

AAAttribution.attributionToken() produces Error posting to Attribution server

I want to use the AdServices framework in my app but I keep getting an error.
I've added AdServices as a framework
I've imported it
I try calling let token = try AAAttribution.attributionToken()
When running on device, this fails with the internalError code, saying Error posting to Attribution server.
Why? Nowhere online explains why this could be or how to fix it. I'm running in debug mode, could it be that?
On the simulator it's even worse and can't generate a token, but I'm not too bothered about that.

EXE_BAD_ACCESS(code=1, address=0*4) in ios

When i use Quiclblox for(App To App Audio and Video Calling) and twilio for(App to Mobile Audio Calling) both in my application then i faced the problem, EXE_BAD_ACCESS(code=1, address=0*4) in IOS(xcode).
But if i use only Quickblox in my application then it works fine,also when i only use twilio then it's also work fine in my app.
But problem comes when i use both third party liabraies(QuickBlox and Twilio) then it shows me:- EXE_BAD_ACCESS(code=1, address=0*4)
error: memory read failed for 0x0
I don't know about this please help me.
I use Zombie to solve this and try to work on instrument to solve this but didn't get anything.

xcode apigee logInUserWithFacebook extra parameter?

I'm using Apigee for my iphone/ipad app.
Like many apps today, mine requires a login via Facebook and Apigee has a function specifically for this in the iOs framework, here's how it's called:
[ApigeeDataClient logInUserWithFacebook:[FBSession activeSession].accessTokenData.accessToken];
As far as my code goes, everything works well up until the above line. I'm receiving the following error.
Response: {"error":"invalid_request","error_description":"missing access token"}
However check out how the function is making the call (from the logs):
Synch outgoing call: 'https://api.usergrid.com/sgfishing/deepseafishing/auth/facebook?ql=fb_access_token=CAADrhKxrQp4BANfZCMuZBdOwUL9nc0H4VzZC1EXVLjABRbcrucTlUgwlKczFinl51GIWyBM5nlZBX1RF84azFAEOfChqN7vgSmvqgwybV8iPU2xjncZB9T5YTdY0pesJkHsSlvOafMhQ6MfIa6qdZCbTYBZCFB2oIPgEnro4runJKcqCy68wZCFQwyIzACVThAC3IEjZADs36hToQxhYZBzAWVhbKlcqJQsroZD'
I would like to bring your attention to this ...facebook?<b>ql=</b>fb_access_token=CAADrh....
I'm not sure why ql= is there, I've checked the definition of logInUserWithFacebook and ql= is nowhere to be found.
Any help would be greatly appreciated.
This is a bug in our iOS SDK. It has been fixed in version 2.0.9 of our SDK (released yesterday).
?ql= is typically used for query language statements see if there is any such code around in your program
This just a tip...may help

iOS 6 SLComposeViewController - creating a facebook post with text and URL - no image

Quite simply unable to make a post with just the text and NSURL object. I can do it with just the post, or with the post, NSURL and image, but ideally I'd just like to provide the link with the post.
It simply states "Cannot post to Facebook" as "The post cannot be sent because the connection to Facebook failed."
Is there anything I can do? I'm not using the Facebook SDK at the moment, but perhaps I might have to?
Many thanks
We just started running in to this issue with code that was working correctly yesterday. Googling shows a lot of people having this issue sharing from other Apple apps today via native integration. I actually think this is an issue on Facebook's end.
I tried sharing a URL from Mobile Safari and it too fails with the same error. Can you confirm that Mobile Safari also fails to share?
Well for now I'm able to leave the image part nil (still include the method, just leave the argument nil) and it will show the text and link only.

Resources