367
Views
7
Comments
Solved
[SSL Pinning Plugin] [ErrorScreen] Cannot read property 'apply' of undefined
ssl-pinning-plugin
Mobile icon
Forge asset by OutSystems

Hi, I am trying to apply the ssl pinning plugin in my app, and now the app does not open, it stays in the screen "There was an error processing your request.  Reload" and I started seeing these two errors on service center: 

[ErrorScreen] Cannot read property 'apply' of undefined

[ErrorScreen] controller.user_Logout$ServerAction is not a function

Can anyone help?

2018-05-28 09-56-50
Filipe Silva
Solution

It is solved with the help of outsystems suport,

It was two things, this component does work well with the multilangual component

and the dummy key that is needed when we do not have a second certificate, for iphone needs to be the one shown on the example configuration file on the documentation. 

2019-03-14 13-56-08
Teodomiro dos Santos

Hi, Filipe.
Thank you for sharing the cause of the issue. I'm facing the same problem.

Did you manage to [somehow] make SSL Pinning get along with Multilingual, or you had to choose which component to keep?

2018-05-28 09-56-50
Filipe Silva

Hi Teodomiro, I had to clone the multilingual plugin

I changed the "AddTranslationFromResource" action and on the js "LoadResource" I removed this line "xhr.overrideMimeType('text/json; charset=utf-8');"

2019-03-14 13-56-08
Teodomiro dos Santos

Thank you for your quick reply, Filipe!!!

I'm gonna try that.

UserImage.jpg
bala prasad

Hi,

After removing the below line.

"xhr.overrideMimeType('text/json; charset=utf-8');" We are unable to proceed. 


TypeError: Cannot read property 'apply' of undefined
05-24 18:44:19.553:  at XMLHttpRequestProxy.overrideMimeType


UserImage.jpg
bala prasad

Hi,

After Removing we are getting this "xhr.overrideMimeType('text/json; charset=utf-8');" line we are getting this error.


SyntaxError: Unexpected token ? in JSON at position 0
   at JSON.parse (<anonymous>)
  at XMLHttpRequestProxy.xhr.onload

2013-05-09 08-37-44
António Braz

bala prasad wrote:

Hi,

After Removing we are getting this "xhr.overrideMimeType('text/json; charset=utf-8');" line we are getting this error.


SyntaxError: Unexpected token ? in JSON at position 0
   at JSON.parse (<anonymous>)
  at XMLHttpRequestProxy.xhr.onload


Hi bala,


please make sure your translation json file is in UTF-8 format.


regards

AB

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.