I'm getting 401 unauthorized access every time I try to connect to the API on QV 12.20 using the rest connector.
I have followed every PDF and link that I have found (and there's quite a lot) and done everything needed as far as I can tell.
I am using QV12.20 desktop and server, NP nov-18, rest connector 1.3 (and 1.75, tried both), on a windows server 2016. Everything in the same machine.
Everything is well connected, I can launch NP tasks that use QV server documents, and I was even able to use the API from an html to launch a NP task (on chrome, same html doesnt work on explorer). But the rest connector fails to connect with 401 error code.
This is how I configure it:
You will see it is http and not https, I also tried with https, but trying to fix this error I switched to http (doing everything necessary on nprinting, which is working on http now:
The NPRINTING user with administrator role is correct, and I can use the windows login for nprinting with it:
And I tried with a lot of trusted origins along all my tests:
I have followed several guides and everything is the same, so I have no idea why it isnt working. Using postmaster, I also get 401 unauthorized, but I dont know how to use that program very well, so maybe Im doing something wrong there.
Like I said, with an html and the following code, it's working (on chrome, not IE):
I have tested your scenario without a QV server and it worked for me while using a local NP connection to the QVW that needs to be either reloaded in NPrinting or a task that needs to be executed in NPrinting.
So to that end, I am attached my QVW containing load script that is working. Note that this code is currently set up to execute all tasks in the QVWS app.
You will need to replace QVWSwith the name of your App.
Also the code is set up to execute all tasks (and connections...currently commented out of the attached code) in the QVWS app (not individual tasks and connections).
You will also need to:
1. replace your NP server name with the one that is in the code of course
2. you will need to comment out my rest connector connection string and use your own. You should also comment out anything else you don't need.