Adobe Air URLRequest HTTPS not working - javascript

I am working on an Adobe Air product that fetches data from the web using air.URLRequest, from both HTTP and HTTPS sites. It is working absolutely fine on most computers, but there are a few people for which it is stalling when it has to fetch from HTTPS sites.
The error returned is just this: ERROR #2032 Stream Error. Doesn't say much.
I asked the people who had the problem to install Fiddler so that i can debug it and activate HTTPS decryption, but there is no way to debug because it works when Fiddler is open.
The application is built using JavaScript, HTML and CSS and the PC's with the problems are using either Windows Vista or Windows 7. I am also using Windows 7 but it's working fine for me.
Any idea how i could fix this very weird issue ?
Thanks!
Alex

Related

How to test and develop with Google maps API without https?

I've searched and searched but I guess I can't find the answer I'm looking for.
I'm working on a web app with Google maps and I am having a lot of difficulties trying to debug and test it. I finally found out why I keep getting errors due to chrome blocking calls made not via HTTPS. The app works in Firefox, but not in chrome or any other browser I've tried, safari, dolphin, etc. (All works great locally of course)
What should I do? Is my only option to pay for SSL cert for my free hosting account that I'm using to test my app? I'm just a mid-level developer who isn't really ready to pay for hosting just yet... Am I missing something super common that most developers take advantage of in terms of having some solid way of testing? Hopefully, that makes sense!
try using https://ngrok.com/ it might work out.
It tunnels your local url to public with https too.
For Chrome, there is a flag for this at chrome://flags/#allow-insecure-localhost.
Click on Enable and restart Chrome. From now on invalid certificates on localhost (and just on https over localhost) are accepted.

NodeJS socket.io don't work on android Chrome

I have the following problem:
I created a simple chat app with the this system as core (https://github.com/kishorekumaru/ChatSystem__Sample).
Now I started this app on a debain server and on the desktop it works perfectly but when I opened the page on my Adnroid device and started Google Chrome brwoser, the page shows up but when I want to enter something it doesn't do anything.
There is also no data displayed.
I think that the Android browser can't connect to the databas.
But why?
My server.js file is the same like in the Github rep. (see above).
I only added new styles and a button to send the messages so far.
EDIT 1
I tried debugging it with Google Remote Debugging (https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging#remote-debugging-on-android-with-chrome-devtools) then it works as designed, when I unplug the cable it crashes again....
Best regards
Tobias

Safari SSL certificate issue and external javascript

My site is running on SSL. On one of the pages I am calling an external javascript required for integration of Birt iHub into our application. The iHub application is running separately on of o our servers and javascript also resided in same application. Now when I try to acces the javascript without SSL it is blocked as my site is running on SSL. So I also put the iHub app on SSL so tha my website communcate with javascript over SSL. Now it works fine for both Chrome, Firefox and IE but in case of Safari it worked for few days then suddely an SSL error shows up. I have delete the SSL certificates from cache and the access the site again and IT worked again but afeter some days same issue occurs. AndI have to delte it again to make it work.
Can anyone tell me whay this is happening and what could be done to avoid this

Webrtc app not working on local host?

I am using a WebRTC demo application for screen sharing. The demo works perfectly fine but when I try to run the same code in localhost or my own remote server, the code doesn't run.
Any ideas on how can I fix this issue?
Screensharing in Chrome only works over an SSL connection(). You can use a self-signed cert and simply accept it in your browser(this is for Chrome < M36).
Also, for Chrome >M36 you must now use the Chrome.desktopcapture API and the usual way of modifying media constraints and enabling screen-sharing in Chrome internals will not work in newer versions of chrome.
The API is farely simple and MUCH more robust than the previous given option in the media constraints.

Phonegap app working locally, not working on phone

I have written a phonegap application, and it performs a pretty simple task, it gets some JSON from a YQL link, and then displays it nicely to the user. This works excellently when I run it using Google Chrome on a Desktop, but, my client tells me that it does not work on his device which is Android 2.3. What can be going wrong? I'm using phonegap build to build to app, and they tell me that it is given internet permission, but, when my client puts the APK on the phone (its not on the market yet), does he need to do something special for it to access the internet?
Thanks a lot,
Dhaivat
in phonegap, allow external host : Open phonegap.plist -> external host and add your url or * to allow all
within the phonegap app the webapp runs under the file:// protocol - this might affect things.
you should test this at least on an emulator yourself - clients usually screw up anything some might screw up when testing ;) best would be to test on an actual device tho.
I'm not sure if this will help but I had a similar problem testing my app here:
https://stackoverflow.com/questions/17496104/json-wordpress-feed-not-appearing-in-android-studio-emulator-using-phonegap
I needed to change access origin to ="*"/ in my config.xml

Categories

Resources