December 15, 2021, 11:42am
I have recently updated to Desktop version 220.127.116.11. Now my ‘Import from Web API’ has stopped working.
So the connection is set up as a ‘Web Location’ with ‘Basic’ Authentication. It used to work fine. Now when I run the ‘Import from Web API’ action, I get the following error:
Error: Server returns non successful status code: 401 (Unauthorized)
Source: action “Import from Web API”, table "Test Extract"
If I run the same API call using Postman (with the same credentials) it works fine.
Projects that use this connector also run fine on EasyMorph Server.
It has only started happening on Desktop since I upgraded to 18.104.22.168. Is this bug?
December 15, 2021, 3:33pm
I’ve just re-installed Desktop 22.214.171.124 and the ‘Web Location’ with ‘Basic Authentication’ works, so it must be something in 126.96.36.199 that is causing the issue.
December 15, 2021, 4:21pm
Hello Mat and welcome to the Community!
We’ve made a change in v5.1.1 in the way Basic Auth works in the Web Location connector. So yes, it works differently.
Try enabling/disabling the “Pre-authenticate each request” option in the Web Location connector (shown below).
December 15, 2021, 4:34pm
I’ve tried this but it still doesn’t work. I tried setting up 2 new 'Web Location’s, one with ‘Pre-authenicate each request’ ticked and another unticked. Both error the same way.
I am encountering a similar issue. Some existing Web Location Connectors that worked under 5.0 do not work under 5.1.1. The Web Location Connector giving me problems uses Basic Authentication. Switching back to version 5.0 of EasyMorph corrects the issue. Re-creating the Connector under version 5.1.1 of EasyMorph did not fix the issue. Also, running with “Pre-authenticate” set or un-set does not correct the issue. Ideas?
December 15, 2021, 8:25pm
Use version 5.1 for now. We’ll investigate what’s going on with 5.1.1.
Could you please do the following steps:
Set Authentication to None in the data connector.
Configure Web Request action to use the same data connector, HTTP method, and URL.
Add columns with repose code and headers to the response
Run Web Request and send us the content of the WWW-Authenticate and Response-HttpCode columns.
December 16, 2021, 2:46pm
Here’s a screen shot after doing as requested in version 188.8.131.52.
There isn’t a WWW-Authenticate column
December 21, 2021, 3:08pm
We’ve updated version 5.1.1. Can you please try the
updated version and see if the problem is now resolved?
December 21, 2021, 3:40pm
Just installed Desktop 5.1.1 build 2 and it work fine now. Thanks.
Is the server version also fixed?
December 21, 2021, 4:02pm
Yes, the Server has also been fixed.