Did you see the message from the OP, Xiaofeng Liu, of how he solved it (for his 
specific situation)?

https://groups.google.com/d/msg/cfaussie/Ug1tjCcUXCk/RLsTij8XBAAJ


He solved it by changing the URL (in the sched task) to be the IP address of 
the machine (not localhost or 127.0.0.1). 

If that’s not your solution/issue, did you assess the first few other answers, 
which addressed more typical explanations for problems of a sched task URL not 
working though a browser one does?



/charlie

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
Allan Cliff
Sent: Friday, December 8, 2017 09:11 AM
To: cfaussie <[email protected]>
Subject: Re: Re[2]: [cfaussie] CF11 Scheduled Task Not Running - 401 
Unauthorized

 

Did anyone ever get to the bottom of this?

 

Having exactly the same problem here.

 

Local IP address url calls to another server (Windows 2012 R2) from the browser 
work as expected.

Also urls in my desktop browser (via VPN).

 

When I put the url into a scheduled tasks, I just get 401 every time.

 

Any solution would be appreciated.

 

Regards,

Allan

 



On Thursday, November 19, 2015 at 4:53:35 AM UTC+1, charlie arehart wrote:

Sure, that is curious. If you may ever get to the bottom of things, it would be 
interesting to hear. Thanks for the update.

/charlie

From: [email protected] <javascript:>  [mailto:[email protected] 
<javascript:> ] On Behalf Of Xiaofeng Liu
Sent: Wednesday, November 18, 2015 5:07 PM
To: [email protected] <javascript:> 
Subject: Re: Re[2]: [cfaussie] CF11 Scheduled Task Not Running - 401 
Unauthorized

 

Hi Charlie, 

 

I originally was using a URL like "http://localhost:1981/cron/schedTask.cfm"; to 
run the scheduled task. So that was the URL I specified in CF Admin. That threw 
401 to me.

 

Also I tested from the browser by accessing the same URL which is 
"http://localhost:1981/cron/schedTask.cfm"; (normal and icognito mode) and it is 
working fine.

 

So now I have to update the URL to use the server's public IP address in CF 
Admin and it works. I don't understand why CF running locally on the same 
server has to use the external IP, I mean not the localhost to run the sched 
task that is also on the same server? Given that localhost is also in the host 
file.

 

Cheers,

Xiaofeng

 

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] 
<mailto:[email protected]> .
To post to this group, send email to [email protected] 
<mailto:[email protected]> .
Visit this group at https://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.

Reply via email to