(401) Unauthorized

Dedicated forum for the visual 'drag and drop' voice application designer that allows easy creation of advanced voice applications without programming knowledge

Moderators: kevin, 3CX staff

(401) Unauthorized

Postby SWSDEV » Thu Sep 17, 2009 1:34 pm

An error occurred trying to get the Debug Information files from the server:
The remote server returned an error: (401) Unauthorized

Why am I suddenly getting this error when I try to access a debug file? What would cause this?
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: (401) Unauthorized

Postby VAD_Support » Thu Sep 17, 2009 2:02 pm

Have you deployed the project in debug mode to the server?
Can you open the .vadproj file using a text editor (like notepad) and check if the build number of the debug version (DebugBuildNumber) is the same than the one that has been deployed? For example, if you have in the .vadproj file <DebugBuildNumber>12</DebugBuildNumber> you should have in the server the following folder: C:\Documents and Settings\All Users\Application Data\3CX\Data\Http\Interface\ivr\PROJECTNAME_12
VAD_Support
Expert
Expert
 
Posts: 146
Joined: Thu Aug 06, 2009 5:29 pm

Re: (401) Unauthorized

Postby SWSDEV » Thu Sep 17, 2009 2:09 pm

build # is 18, but I don't have any folders in that directory that looks like a project, however I have successfully deployed from the VAD before.

Does the VAD have that path you gave me hard coded? BEcause on my system the equivalent directory where my 3cx data is has "All User.WINDOWS" instead of "All USers".
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: (401) Unauthorized

Postby SWSDEV » Thu Sep 17, 2009 2:12 pm

This is my proj file

<?xml version="1.0" encoding="utf-8"?>
<Graphical_Application_Designer_Project>
<Version>1.0</Version>
<Files>
<File path="Main.flow" type="callflow" pbx_callflow_name="Main" activation_extension="855" activation_extension_debug="856" />
<File path="MenuOptions.comp" type="component" />
</Files>
<Variables>
<ArrayOfVariable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
</Variables>
<PbxServer>192.168.1.101</PbxServer>
<PbxConfigurationPort>5485</PbxConfigurationPort>
<PbxDeploymentUri>http://192.168.1.101/IVR/VAD_Deploy.aspx</PbxDeploymentUri>
<PbxDownloadDebugFilesUri>http://192.168.1.101/IVR/VAD_DownloadDebugInfoFile.aspx</PbxDownloadDebugFilesUri>
<PbxGetDebugFileNamesUri>http://192.168.1.101/IVR/VAD_GetDebugInfoFileNames.aspx</PbxGetDebugFileNamesUri>
<NextCallflowActivationExtension>854</NextCallflowActivationExtension>
<DebugBuildSuccessful>True</DebugBuildSuccessful>
<ReleaseBuildSuccessful>True</ReleaseBuildSuccessful>
<DebugBuildNumber>19</DebugBuildNumber>
<ReleaseBuildNumber>18</ReleaseBuildNumber>
<ChangedSinceLastDebugBuild>False</ChangedSinceLastDebugBuild>
<LastDeployedConfiguration>Debug Build</LastDeployedConfiguration>
</Graphical_Application_Designer_Project>




What else would help you ?
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: (401) Unauthorized

Postby VAD_Support » Thu Sep 17, 2009 2:23 pm

No, the directory is not hardcoded, it is the one pointed by the environment variable %ALLUSERSPROFILE%, usually C:\Documents and Settings\All Users but it could be different.

You shoud have under %ALLUSERSPROFILE%\Application Data\3CX\Data\Http\Interface\ivr\ a directory named "YOURPROJECTNAME_19", because 19 is the latest debug build. Do you have this directory?
VAD_Support
Expert
Expert
 
Posts: 146
Joined: Thu Aug 06, 2009 5:29 pm

Re: (401) Unauthorized

Postby SWSDEV » Thu Sep 17, 2009 3:21 pm

Interesting... I don't have anything with projectname_[build] at all, however I do have two debug projects deployed to my 3cx. I did a global file search for the name of my project on my c drive and nothing came up. weird.
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: (401) Unauthorized

Postby VAD_Support » Thu Sep 17, 2009 3:53 pm

Are you able to make a call to the deployed VAD callflow?
VAD_Support
Expert
Expert
 
Posts: 146
Joined: Thu Aug 06, 2009 5:29 pm

Re: (401) Unauthorized

Postby SWSDEV » Thu Sep 17, 2009 4:33 pm

I am not developing on the server itself. I am developing in the VAD on a vista ultimate 64 bit machine and deploying to a windows server 2003 R2 machine on the network. If that helps.
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: (401) Unauthorized

Postby VAD_Support » Thu Sep 17, 2009 6:23 pm

If you're using Windows 2003 in the server, you need to change the properties "PbxDeploymentUri", "PbxDownloadDebugFilesUri" and "PbxGetDebugFileNamesUri" before deploy, changing "/IVR" with ":5484", for example:
PbxDeploymentUri: http://192.168.1.101:5484/VAD_Deploy.aspx

Please, change these properties and deploy the project again. Let me know if this works.
VAD_Support
Expert
Expert
 
Posts: 146
Joined: Thu Aug 06, 2009 5:29 pm

Re: (401) Unauthorized

Postby SWSDEV » Fri Sep 18, 2009 5:51 pm

That helped. I realized that changing the settings in tools->Options doesn't change the settings in the appication itself.

Perhaps a checkbox or question such as "Do you want to apply the new settings to your current project?" when you save it.

However I'm unable to see any debug files when I'm not actually any of the debug files when I'm not actually developing on the 3cx server
.
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: (401) Unauthorized

Postby VAD_Support » Fri Sep 18, 2009 10:26 pm

Let's recap. Could you finally deploy the project to 3CX? Did you deploy the debug configuration? Did you make calls to the callflow? Do you have this problem only when working remotely or locally too?
VAD_Support
Expert
Expert
 
Posts: 146
Joined: Thu Aug 06, 2009 5:29 pm

Re: (401) Unauthorized

Postby SWSDEV » Fri Sep 18, 2009 11:31 pm

- Yes I could finally deploy
- I deployed the DEBUG configuration
- I made calls, but I got the audio error message immediately
- I have the problem of not being able to get debugging files only remotely right now.
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: (401) Unauthorized

Postby VAD_Support » Mon Sep 21, 2009 1:46 pm

When you hear an error message from the IVR, the log file 3CXIvrServer.log located at %ALLUSERSPROFILE%\Application Data\3CX\Data\Logs contains information about the error. Can you paste here the information in that file?
VAD_Support
Expert
Expert
 
Posts: 146
Joined: Thu Aug 06, 2009 5:29 pm

Re: (401) Unauthorized

Postby SWSDEV » Mon Sep 21, 2009 1:58 pm

I have resolved this specific error completely now. It just went away, and I'm not sure what I did. :)
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: (401) Unauthorized

Postby SWSDEV » Sun Dec 06, 2009 5:52 am

It seems that this error has resurfaced after install 3cx v8 and the new VAD.

When I deploy from a vista machine to a win 2003 server the VAD thinks it has succesfully deployed. 3CX shows a new extension under IVRs as well. However in the \ivr folder where the IVRs are deployed there is actually nothing that was really copied over to the server.
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Next

Return to 3CX Voice Application Designer (VAD)

Who is online

Users browsing this forum: No registered users and 0 guests