[SSL Pinning Plugin] [ErrorScreen] Cannot read property 'apply' of undefined

Forge Component
Published on 25 Sep by OutSystems R&D
3 votes
Published on 25 Sep by OutSystems R&D

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?


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. 


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?

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');"

Thank you for your quick reply, Filipe!!!

I'm gonna try that.


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


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