NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - urayoan

Pages: 1 [2] 3 4 ... 15
16
Web Server - Ask For Help / Re: Server Error 500
« on: May 03, 2021, 03:51:02 AM »
Hello Bruce:
  The only embded I have in the web handler is this, located in the ErrorTrap PROCEDURE

    p_web.Trace('Error Trap: ' & errorStr & ' ' & functionName) 


17
Web Server - Ask For Help / Re: Server Error 500
« on: April 30, 2021, 07:09:37 AM »
Bruce, given what I learn in the past few days, this is what i capture related to the possible thread leak and procedure. How can I handle properly?

I do not delete manually any session, the webserver is taking care of if for me.


18
Web Server - Ask For Help / Re: Server Error 500
« on: April 29, 2021, 04:53:52 AM »
Bruce a question related to this, the screen of the GPF was created with the same method posted by Mark in Clarionhub. The web server having problems uses DLLs from other parts of our app.

a) perhaps turn on the better stack trace stuff;
https://clarionhub.com/t/how-to-improve-the-call-stack-when-your-program-gpfs/188

Given the information of for that to work, all the DLLs need to be in the same mode too?


b) turn on log-to-disk, so you can see the request that triggers the GPF thread.

I think I never used the Screen & Disk option of NetTalk, can I have a hint where does NetTalk writes those logs?

UPDATE: about the Log File, RTFM (Read The Fantastic Manual), Building Apps With NetTalk. Had it all.

Thank you @Urayoan

19
Web Server - Ask For Help / Re: Server Error 500
« on: April 29, 2021, 04:34:44 AM »
Thank you very much Bruce. That would help me out pin the culprit better! Ill keep posted what I found

20
Web Server - Ask For Help / Re: Server Error 500
« on: April 28, 2021, 03:51:42 AM »
Thank you Bruce. Thing is, the server is kind of very busy, and the last call can be a hundreds or more down very fast. I included the web server when it stalls with the error and that call is the one I see constantly when the server stops responding.

I did bump up the threads to 100 to see if the server at least holds better until I find the problematic call. The server has a request to make reports for the users and I am aware that that call is more slow than others.

Check when you had the chance the screenshot and if it hit any bells, please let me know

PD. When the server has the error, that call shows and keep moving the log, so it not stays there and try to process the call


Thank you again @ Urayoan

21
Web Server - Ask For Help / Re: Server Error 500
« on: April 27, 2021, 11:59:30 AM »
Bruce, in that web server, the threads I assigned are 20, and when the error occurred the number stays in 20. So if I understand correctly, that indicates a leak occurred. Right?

Another symptom when happen is, I see the same call again and again and again in the logs, that means that call that is repeating could be the culprit?

Thanks for the help

@ Urayoan

22
Web Server - Ask For Help / Server Error 500
« on: April 23, 2021, 12:12:58 PM »
Hello
  I am having a Web Server error 500 in a NetTalk Server after it is running for a while. Seeing the web server embed i found this (code below) with the message Server Busy, try again shortly.

  Does NetTalk server it is supposed to recover from that error? As far as i know, I need to restart the webserver to start serving pages again.

    loc:RequestData :=: p_RequestData
    If (self.performance.NumberOfThreads >= self.MaxThreads and self.MaxThreads > 0) or loc:shuttingDown
        if loc:RequestData.RequestMethodType <> NetWebServer_DELETESESSION and PoolWaiting = 0
          if not self.WebSocketServer &= null and self.WebSocketServer.IsWebSocket(self.packet.SockID)
            ! do not send invalid reply, it's a malformed packet in the wss protocol.
          else
            self.SendError(500,'Server Busy','Server Busy, try again shortly')
          end
          self._PerfEndThread(0,0,500)  ! Errors are counted, but otherwise not included in stats
          do UpdateStats
          dispose(p_RequestData.DataString)
        end
      return
    End

23
Thank you, I am using 11.45

I think in that version of NetTalk, the server settings tab template is included. If implemented, you are gonna see something like the screenshot included in this post.

If not, I think another way to implement the Strict-Transport-Security is with this, near the embed

s_web._SitesQueue.Defaults.StrictTransportSecurity = 'Strict-Transport-Security: max-age=31536000;'

More examples how to set it here
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security

24
Web Server - Ask For Help / Re: capturing Phone number on log in
« on: April 21, 2021, 03:43:03 AM »
Hello Richard I
  Even if the app is written in native language for mobile, access to the phone number is restricted for privacy issues.

Maybe a workaround you can do is, ask the phone number to the user at the moment of login to send a kind of validation code (similar to two factor auth), and with Secwin send the SMS with the code and validate the phone number is indeed real.

25
Hi rupertvz:
  What version of NetTalk you have installed? I think that was addressed in recent version as far as I recall

26
Web Server - Ask For Help / Re: Multi Factor Authentication
« on: February 23, 2021, 06:10:51 AM »
Thank you very much Ron!

27
Web Server - Ask For Help / Re: Multi Factor Authentication
« on: February 22, 2021, 10:44:29 AM »
Thank you Bruce. That would help too.

hi Ura,

So second factor breaks down to a number of steps;

a) User identifies themself (presumably on the login screen)
b) create a second factor token for them (ie some code). Ideally store the token with some sort of timeout, and of course make sure it's single-use
c) send the token to the user (sms / email / whatever)
d) allow the user to enter the token onto the login screen, along with the user name and password.

Cheers
Bruce

28
Web Server - Ask For Help / Re: Multi Factor Authentication
« on: February 19, 2021, 03:45:37 AM »
Thank you very much Neils. I will check

Hi
I send an sms to the registered user with a 5 digit code which is used for validation.
I use Vonage API (formerly Nexmo) - it's cheap and very easy to use.

      net.SetAllHeadersDefault()
      net.SetContentType('form')
      net.SetValue('api_key','xxxxxxxx')
      net.SetValue('api_secret','xxxxxxxxxxxxxxxx')
      st.SetValue(clip(pText))
      st.ToUnicode(st:EncodeUtf8,st:CP_WINDOWS_1258)

      net.SetValue('text',st.GetValue())
      net.SetValue('from','Bazic Validation')
      net.SetValue('to',pNummer)
      net.Post('https://rest.nexmo.com/sms/json')

29
Web Server - Ask For Help / Multi Factor Authentication
« on: February 18, 2021, 08:57:03 AM »
Hello everyone. Any ideas or maybe APIs to implement two factor authentication in NetTalk web applications?

Sadly, this needs to be an alternative to SECWIN


Thanks in advance

30
Web Server - Ask For Help / Re: Bug or undocumented change?
« on: February 18, 2021, 03:45:54 AM »
Thank you Bruce. I did that and in effect, the problem was gone, but it took me a few hours until i got what was the problem. What you said makes complete sense and the warning (or at least a mention in the release notes) should help.

Thank you again

I will look into generating a warning that a field of Display/Button exists so that you can identify, and switch over, all those kinds of buttons.

Pages: 1 [2] 3 4 ... 15