NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
Web Server - Ask For Help / Re: nettalk 14.38 Webserver crashes sometimes
« Last post by Bruce on Today at 07:56:43 AM »
If you want the result to be "just a file" and not an API response (with the file embedded in XML or JSON) then don't use a WebServiceMethod.
Use a NetWebPage instead. See File Download example.
2
Web Server - Ask For Help / Re: nettalk 14.38 Webserver crashes sometimes
« Last post by AtoB on November 17, 2026, 11:12:20 PM »
Hi Bruce,

then I problably know what is causing this and this is due to my own actions (see attached screenshot with code I inserted, line number might be off ... as the gpf report is from an exe I shipped months ago)

I'm trying to send a resource (file) when wsResources/resources is hit. It then calls "resources" (to validate api-key and the lot) which is a netwebservicemethod procedure.

I guess sometimes this doesn't return the correct data ... and crashes the server.

What I'm actually trying to accomplish is "send" the file from within the netwebservicemethod procedure (I commented out the line that was intended for this purpose, but adding the sendfile there doesn't work (I think it starts a recursion).

If you can pinpoint me in the right direction with the latter, the code in NetwebWorker can be removed

This is the part that now returns the filename to serve (SELF.rData is a StringTheory object that is returned to the call, NetWebWorker in this case and now contains the actual filename to be served):


  IF lDownLoadOk
    IF ~EXISTS(lFnResourceFull)
      lDownloadOk = False
    END
  END
 
  IF lDownloadOk
    p_web.HeaderDetails.ContentDisposition = 'attachment; filename="' & CLIP(lFnResource) &'"' 
    p_web.ReplyContentType = p_web.GetContentType(lFnResource)
 
    SELF.rData.setvalue('fn:' & lFnResourceFull)
    ODS('value: ' & CLIP(SELF.rData.GetValue()))
    !SELF.rP_Web._SendFile(lFnResourceFull)
   
    SELF.SkipBuild  = True
    SELF.SkipSend   = True
    SELF.ReturnData = True
   
  ELSE
    SELF.rP_Web.SendError (400, 'Bad Request', 'The requested file was not valid') ! Bad Request
  END
3
Web Server - Ask For Help / Re: nettalk 14.38 Webserver crashes sometimes
« Last post by Bruce on November 17, 2026, 03:24:23 PM »
the problem seems to be in applaunch004.clw.  I'm guessing that's your WebHandler?
you would likely need to post that to get more information.

4
typically it's done for you. But it depends on the context. So tell us more about what HTML you are using here?
5
Web Server - Ask For Help / Re: nettalk 14.38 Webserver crashes sometimes
« Last post by osquiabro on November 13, 2026, 03:27:33 AM »
Verify that all templates required by NT are updated to the latest version.
6
Web Server - Ask For Help / Re: nettalk 14.38 Webserver crashes sometimes
« Last post by AtoB on November 12, 2026, 11:57:55 PM »
I'm not using secwin or IMDD, and it's c10 (12412).

As I do have a gpf-report I assume it's compiled in debug mode, but are there ways to extract more info out of it?

Thanks
7
Web Server - Ask For Help / Re: nettalk 14.38 Webserver crashes sometimes
« Last post by seanh on November 12, 2026, 03:23:49 PM »
Have you compiled in debug made and used the debug version of the RTL?
That will usually give you more information.

Also what version of clarion? and are you using secwin or the IMDD?
8
Web Server - Ask For Help / Re: Server becoming temporarily non-responsive
« Last post by TimR on November 10, 2026, 10:43:29 AM »
No I haven't figured out what is going on, it doesn't happen frequently enough, for me to prioritize. I did, sort of, recreate this problem by flooding the server with requests using Apache Bench. There appeared to be some sort of staircase pattern going on with slowdowns, that got worse over time. It the server was given a chance to catch up, the slowdown went away.
I wasn't convinced my testing was actually chasing the problem, because I don't think my servers were getting flooded with requests. Also the server responded to all my testing requests, it just got slower and slower.
9
Web Server - Ask For Help / nettalk 14.38 Webserver crashes sometimes
« Last post by AtoB on November 10, 2026, 02:40:33 AM »
using c10.0.12412 and nettalk 14.38

unexplainable situation: last summer I converted a long time running 12.45 nettalk server to 14.38 and shipped it to one of my smaller clients (as a test case).

This webserver has been running for a couple of months flawlessly and last week it (randomly) crashed for 5/6 times in a timeframe of minutes (it nicely rebooted itself and then crashed again. This morning it did the same: I got 5 crash dumps in a frame of two minutes. I've attached one as an example, but the all look rather the same.

To me (no expert) it looks that some type/kind of requests (fired from who knows where) apparently lets the server crash (but again: this is guessing)

Questions:

1 - does anybody know what this line points to?

[01] 01207248h    regel=204    Proc=RaiseLong    src=wxeh.cpp    module=G:\broekwar\webapp\ClaRUN.dll 10.0.12412

2 - does anybody have a clue what might be causing this and/or where to start looking ...?

TIA

Regards,
Ton
10
Web Server - Ask For Help / Re: Server becoming temporarily non-responsive
« Last post by AtoB on November 10, 2026, 01:28:00 AM »
Hi Tim,

have you found out what might be the culprit with this issue (I'm about the ship an api-server to my client, almost same config (nettalk 14.38 in a server farm behind an nginx load balancer, allthough I'm using c10)?
Pages: [1] 2 3 ... 10