Welcome! Log In Create A New Profile

Advanced

Using ngrok for webservice and calling from mobile application

Posted by jaistar 
Using ngrok for webservice and calling from mobile application
August 03, 2022 08:42AM
Hi Everyone,

I have used ngrok for port forwarding and created the link for my webservice
it is working well on the computer browser and mobile browser but when I am trying to access the same link from a mobile application. it shows following error
Can you help me identify the problem?
This is the link
[ffbc-5-192-142-232.in.ngrok.io]

or is there any other way to make webservice online to access from windev mobile application?

Here is the code i used

oRequest is httpRequest
oResponse is httpResponse

oRequest.URL = "[ffbc-5-192-142-232.in.ngrok.io];
oRequest.Method = httpGet
oResponse = HTTPSend(oRequest)

bufPhoto is Buffer

vRestVariant is Variant

IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
ELSE
IF oResponse.DescriptionStatusCode = "OK" THEN
vRestVariant = JSONToVariant(oResponse.Content)
LooperDeleteAll(LOOP_Content)
FOR ALL Member OF vRestVariant
bufPhoto = Decode(Member.m_Photo)
LooperAddLine(LOOP_Content,Member.m_sOUTLET1_JOBID,Member.m_sDOCUMENTID, Member.m_sCUSTMERNAME,Member.m_sCUSTOMERID, Member.m_sDESCRIPTION, Member.m_sPRICE, Member.m_sQUANTITY, Member.m_sTOTAL,bufPhoto)

END
ELSE
ToastDisplay("No Data")

END
END

LooperDisplay(LOOP_Content,taStart)


Thank you,
Regards
JAI STAR S
Attachments:
open | download - MobileAppError.jpg (33 KB)
Re: Using ngrok for webservice and calling from mobile application
August 22, 2022 08:51AM
The solution is found. need to use paid version then only ssl certification error will not occur
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: