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.
16
Web Server - Ask For Help / Re: Webserver stops serving at similar time each day (exe service is still running)
« on: September 24, 2017, 09:31:38 PM »
Cool.
17
Web Server - Ask For Help / Re: Webserver stops serving at similar time each day (exe service is still running)
« on: September 22, 2017, 06:14:48 AM »
Well it was 12:00 and 5,6,7 seconds when things got interesting.
I ran the public site as an exe straight (not service), and at 12:00:05 up popped a "Nettalk Object Error" (attached screenshot).
And there seem to be three debugview lines that are related:
Now to my knowledge this doesn't happen at any other time. It certainly doesn't happen throughout the day while the public site is under the bulk of it's usual load.
So. Bruce - Does this give any further prompts to what might be going on? (remembering that this happens at the same time, once a day, each day)
I ran the public site as an exe straight (not service), and at 12:00:05 up popped a "Nettalk Object Error" (attached screenshot).
Code: [Select]
A network communication error has occurred.
Error = The URL for the Fetch command was blank.
The error number was -15 which means No servers.
Error occurred in function NetWebClient.Fetch
And there seem to be three debugview lines that are related:
Code: [Select]
[st] [netTalk][thread=2] w_Property END
[st] [netTalk][thread=1] xxx self.state=1
[st] [netTalk][thread=1] NetSimple.ErrorTrap -15 The URL for the Fetch command was blank NetWebClient.Fetch
Now to my knowledge this doesn't happen at any other time. It certainly doesn't happen throughout the day while the public site is under the bulk of it's usual load.
So. Bruce - Does this give any further prompts to what might be going on? (remembering that this happens at the same time, once a day, each day)
18
Web Server - Ask For Help / Re: Webserver stops serving at similar time each day (exe service is still running)
« on: September 21, 2017, 12:29:24 AM »
Peter - Yeah maybe, will be checking the event logs. Thanks!
Oggy - Yeah I ran into that issue a few years back with NT webservers, particularly around print drivers etc, so it's running as a service with a separate account. But there might be something there, perhaps that account is having issues. Thanks!
Oggy - Yeah I ran into that issue a few years back with NT webservers, particularly around print drivers etc, so it's running as a service with a separate account. But there might be something there, perhaps that account is having issues. Thanks!
19
Web Server - Ask For Help / Re: Webserver stops serving at similar time each day (exe service is still running)
« on: September 20, 2017, 10:14:05 PM »
Hey Bruce,
It's usually running as a service. So I'm not sure whether that is the case or not.
I'll try tonight, leave it running open, stay up "late" and monitor.
It's usually running as a service. So I'm not sure whether that is the case or not.
I'll try tonight, leave it running open, stay up "late" and monitor.
20
Web Server - Ask For Help / Webserver stops serving at similar time each day (exe service is still running)
« on: September 20, 2017, 06:50:14 PM »
Hi Everyone/Bruce,
Got a strange one that is pretty wierd, cant work it out yet.
Since Sept 12 between 12am and 12:10am my public site webserver will stop serving (Uptime Robot pings me), although the exe service is still running when I go in to restart.
The build on Sept 11 didn't have anything dramatic in changes to the public site or dlls. And it wasn't the Nettalk 10 update (10.06) that came out on Sept 11 because I've only just upgraded to that this week.
To try and understand what is going on, I put a Debug() log into the ProcessLink embed for times >= 11:40pm and <= 12:20am.
These logs show activity right up until 12am on the dot, then one single entry for 12am and that's it. Nothing else from then until I restart the server.
Any ideas how I might carry on trouble-shooting this one?
Got a strange one that is pretty wierd, cant work it out yet.
Since Sept 12 between 12am and 12:10am my public site webserver will stop serving (Uptime Robot pings me), although the exe service is still running when I go in to restart.
The build on Sept 11 didn't have anything dramatic in changes to the public site or dlls. And it wasn't the Nettalk 10 update (10.06) that came out on Sept 11 because I've only just upgraded to that this week.
To try and understand what is going on, I put a Debug() log into the ProcessLink embed for times >= 11:40pm and <= 12:20am.
These logs show activity right up until 12am on the dot, then one single entry for 12am and that's it. Nothing else from then until I restart the server.
Any ideas how I might carry on trouble-shooting this one?
21
Web Server - Ask For Help / Re: Individual URL for download, with UID
« on: March 16, 2017, 09:39:59 PM »
Forgot something.
At the top of the _SendFile embed, there's a StringTheory var that holds the url.
You can then perform various tests on this, and case the segments to be able to know what to do.
At the top of the _SendFile embed, there's a StringTheory var that holds the url.
Code: [Select]
str_Url.Free(); str_Url.FreeLines();
str_Url.SetValue(clip(p_Filename))
str_Url.Remove(clip(GLO:ProgramPath)&'web\')
str_Url.Split('\')
if (str_Url.GetLine(str_Url.Records()) = '') then str_Url.DeleteLine(str_Url.Records()) .
You can then perform various tests on this, and case the segments to be able to know what to do.
Code: [Select]
!* Check *
case lower(str_Url.ExtensionOnly())
of 'jpg' orof 'png'
else
!* Case the first segment of the url *
case lower(str_Url.GetLine(1))
22
Web Server - Ask For Help / Re: Individual URL for download, with UID
« on: March 16, 2017, 09:37:49 PM »
Hi Wolfgang,
Okay, so, here's the gist of what my code does (although Bruce's book/code would surely be simpler and more profound, ha).
1. Code goes into the _SendFile embed. I was (and still do for a couple of little things) using the _TranslateFileName embed to redirect a file and rewrite the url, but there are length issues with what is passed to and fro. Anyway, _SendFile!
2. You want to get a couple of StringTheory vars going on, very very helpful for doing file stuff.
3. You need to get to the point of knowing the url is something you want to allow for a custom download (ie my code splits the url into segments based on the \)
Something like this: Url: <purpose>\<context>\<guid1> or <subcontext>\<guid2> or <guid1>
4. Once you get there, you start setting the file information for the webserver.
For example, here's the psuedo code for one type of download file option I use. The str_DownloadFile StringTheory var has the absolute path of the file you want to download.
5. Now, this is important. You don't want the default webserver functionality to happen. So at the bottom of the _SendFile embed BEFORE the parent call you need an if statement that starts, and it finishes in the AFTER parent call embed.
The code at the bottom of your _SendFile embed would look something like:
Then at the start (really it's the only thing) of the embed AFTER the parent call, you end your if statement:
Okay, so, here's the gist of what my code does (although Bruce's book/code would surely be simpler and more profound, ha).
1. Code goes into the _SendFile embed. I was (and still do for a couple of little things) using the _TranslateFileName embed to redirect a file and rewrite the url, but there are length issues with what is passed to and fro. Anyway, _SendFile!
2. You want to get a couple of StringTheory vars going on, very very helpful for doing file stuff.
3. You need to get to the point of knowing the url is something you want to allow for a custom download (ie my code splits the url into segments based on the \)
Something like this: Url: <purpose>\<context>\<guid1> or <subcontext>\<guid2> or <guid1>
4. Once you get there, you start setting the file information for the webserver.
For example, here's the psuedo code for one type of download file option I use. The str_DownloadFile StringTheory var has the absolute path of the file you want to download.
Code: [Select]
self.ForceNoCache = 1
str_Filename.SetValue(str_DownloadFile.FileNameOnly())
self.ReplyContentType = 'application/'&str_DownloadFile.ExtensionOnly()
p_Header = NET:SendHeader + NET:DontCache
self.ForceNoCache = 1
self.HeaderDetails.ContentDisposition = 'attachment;filename="'&str_Filename.GetValue()&'"'
5. Now, this is important. You don't want the default webserver functionality to happen. So at the bottom of the _SendFile embed BEFORE the parent call you need an if statement that starts, and it finishes in the AFTER parent call embed.
The code at the bottom of your _SendFile embed would look something like:
Code: [Select]
if (customdownloadflag = 1)
self._SendFile(str_DownloadFile.GetValue(),p_Header)
Then at the start (really it's the only thing) of the embed AFTER the parent call, you end your if statement:
Code: [Select]
end
23
Web Server - Ask For Help / Re: Individual URL for download, with UID
« on: March 15, 2017, 02:41:38 PM »
G'day Wolfgang!
This is absolutely possible. In fact, it's now an integral part of all of our systems, the idea that you send out a url that doesn't actually exist.
You'll want a function that returns a url (especially helpful if you have automated systems for sending those links out via whatever).
And you'll want Webhandler to know how to interpret and deal with that link.
I'm away from my desk at the moment, so will get back to this with specifics. It's the _ProcessLink and possibly _TranslateFilename embeds in question. Basically you can take in the url and change what is sent back. The url is all that the person and it's browser sees. The file, it can be whatever you want, from whereever you want (within limits).
Anyway, will be back later with specifics.
This is absolutely possible. In fact, it's now an integral part of all of our systems, the idea that you send out a url that doesn't actually exist.
You'll want a function that returns a url (especially helpful if you have automated systems for sending those links out via whatever).
And you'll want Webhandler to know how to interpret and deal with that link.
I'm away from my desk at the moment, so will get back to this with specifics. It's the _ProcessLink and possibly _TranslateFilename embeds in question. Basically you can take in the url and change what is sent back. The url is all that the person and it's browser sees. The file, it can be whatever you want, from whereever you want (within limits).
Anyway, will be back later with specifics.
24
E-Mail - Ask For Help / Re: Outlook changing charset <meta> tag? How to stop?
« on: February 27, 2017, 07:44:36 PM »
Cool, thanks Bruce. Will keep scouring the ends of google.
25
E-Mail - Ask For Help / Outlook changing charset <meta> tag? How to stop?
« on: February 21, 2017, 01:03:19 PM »
Hi Bruce/Folks,
Have got a bit of a thing.
Users were noticing that some characters were coming up in emails as question marks. Now, a while back I changed everything (in the webserver, as well as in emails etc) to be UTF-8. And this works great.
But. Still we get an html email that might have one of the those long dashes, and on some email clients (Outlook for sure) it displays as three question marks.
So I went investigating.
And what I found, so far, was that Outlook seems to change the charset <meta> tag in the email.
--
The system creates an html email and sends it out with a <meta> charset=utf-8 tag (first screenshot).
When Outlook opens the email, it changes the charset <meta> tag to us-ascii (second screenshot).
--
1. Is there any way to stop Outlook from changing this? (have googled, but couldn't find anything that helps with this, but might not be looking for the right thing)
If I can stop it, then I can rule this out. If the question marks keep popping up, then I'll know it was something different.
Thanks for any help!
Have got a bit of a thing.
Users were noticing that some characters were coming up in emails as question marks. Now, a while back I changed everything (in the webserver, as well as in emails etc) to be UTF-8. And this works great.
But. Still we get an html email that might have one of the those long dashes, and on some email clients (Outlook for sure) it displays as three question marks.
So I went investigating.
And what I found, so far, was that Outlook seems to change the charset <meta> tag in the email.
--
The system creates an html email and sends it out with a <meta> charset=utf-8 tag (first screenshot).
When Outlook opens the email, it changes the charset <meta> tag to us-ascii (second screenshot).
--
1. Is there any way to stop Outlook from changing this? (have googled, but couldn't find anything that helps with this, but might not be looking for the right thing)
If I can stop it, then I can rule this out. If the question marks keep popping up, then I'll know it was something different.
Thanks for any help!
26
Web Server - Ask For Help / Re: Nettalk 9.19, change to MakeErrorPacket?
« on: February 13, 2017, 03:41:15 PM »
Yup cool. So was there a change?
27
Web Server - Ask For Help / Nettalk 9.19, change to MakeErrorPacket?
« on: February 09, 2017, 03:47:59 PM »
Hi Bruce/Folks,
Was on 9.16 before upgrading, so this may have happened in 17, 18 or 19.
My embed for making a custom 404 page was orphaned after the upgrade.
Can't find anything in the version history docs (although that could be me missing something) on it.
Was there a change, or did something wierd go on my end?
Have put it back to the MakeErrorPacket embed and going on okay.
Was on 9.16 before upgrading, so this may have happened in 17, 18 or 19.
My embed for making a custom 404 page was orphaned after the upgrade.
Can't find anything in the version history docs (although that could be me missing something) on it.
Was there a change, or did something wierd go on my end?
Have put it back to the MakeErrorPacket embed and going on okay.
28
Web Server - Ask For Help / Re: vTip and Html | Showing on Firefox but not Chrome or IE
« on: January 31, 2017, 08:39:59 PM »
Thanks Vinnie, good to know. Haven't updated yet, will need to spend time checking through all webservices to make sure they work after the upgrade.
Bruce:
1. Okay, I'll try an example.
2. No console errors on chrome.
3. System uses all.js, so if that's not existing we'd have bigger problems.
Bruce:
1. Okay, I'll try an example.
2. No console errors on chrome.
3. System uses all.js, so if that's not existing we'd have bigger problems.
29
Web Server - Ask For Help / vTip and Html | Showing on Firefox but not Chrome or IE
« on: January 26, 2017, 01:49:38 PM »
Hi Folks,
Have discovered that for basic html, vTip works fine in Firefox but doesn't display (or get loaded?) in Chrome or IE.
[edit] Am running the latest versions of all browsers.
Attached are the pics showing what happens.
It looks like Chrome and IE aren't recognising that the jquery plugin exists.
Am doing more testing, but figured I'd ask here also.
Any thoughts?
Have discovered that for basic html, vTip works fine in Firefox but doesn't display (or get loaded?) in Chrome or IE.
[edit] Am running the latest versions of all browsers.
Attached are the pics showing what happens.
It looks like Chrome and IE aren't recognising that the jquery plugin exists.
Am doing more testing, but figured I'd ask here also.
Any thoughts?
30
Web Server - Ask For Help / Re: How to do a 301 Redirect from "www" to "root"?
« on: December 13, 2016, 01:46:53 PM »
Thanks Bruce, really appreciate this.
What's cool is that the solving of the relative urls issue (other thread) meant this no longer was something that needed to happen. Thankfully.
But is a great piece of info/how-to to have on the forum.
Cheers.
Stu
What's cool is that the solving of the relative urls issue (other thread) meant this no longer was something that needed to happen. Thankfully.
But is a great piece of info/how-to to have on the forum.
Cheers.
Stu