silkimen / cordova-plugin-advanced-http

Cordova / Phonegap plugin for communicating with HTTP servers. Allows for SSL pinning!
MIT License
400 stars 321 forks source link

undefined sendRequest #477

Closed mazkaaa closed 2 years ago

mazkaaa commented 2 years ago

Hello! i've been using http sendRequest to the rest api backend endpoint but got undefined result.

image image

I already tried to setServerTrustMode to nocheck but it wont print the log. any idea?

silkimen commented 2 years ago

You implemented the success handler but didn't provide the fail handler function and your request is most likely failing. Just an idea: try to use the Bearer authentication scheme for your JWT token instead of JWT which is not a registered IANA scheme.

But your problem is not related at all to this plugin, therefore:

Please read the documentation carefully. We primarily use GitHub as an issue tracker; for usage and support questions, please check out these resources below. Thanks!