# Import from Web API error

**URL:** <https://community.easymorph.com/t/import-from-web-api-error/3260>\
**Category:** Support\
**Created:** [December 15, 2021, 11:42am UTC](https://community.easymorph.com/t/import-from-web-api-error/3260 "2021-12-15T11:42:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mat\_C](https://community.easymorph.com/user_avatar/community.easymorph.com/mat_c/32/3649_2.png) [@Mat\_C](https://community.easymorph.com/u/Mat_C)\
**Post date:** [December 15, 2021, 11:42am UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/1 "2021-12-15T11:42:53Z")

</div>

Hello,  
I have recently updated to Desktop version 5.1.1.1. 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 5.1.1.1. Is this bug?

Regards,  
Mat

---

<div class="post-metadata">

**Author:** ![Mat\_C](https://community.easymorph.com/user_avatar/community.easymorph.com/mat_c/32/3649_2.png) [@Mat\_C](https://community.easymorph.com/u/Mat_C)\
**Post date:** [December 15, 2021, 3:33pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/2 "2021-12-15T15:33:45Z")

</div>

I've just re-installed Desktop 5.1.0.8 and the 'Web Location' with 'Basic Authentication' works, so it must be something in 5.1.1.1 that is causing the issue.

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [December 15, 2021, 4:21pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/3 "2021-12-15T16:21:26Z")

</div>

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).

 ![image](https://community.easymorph.com/uploads/default/original/2X/5/57cf4a96c247977aaf72d59137b74ac958606733.png)

---

<div class="post-metadata">

**Author:** ![Mat\_C](https://community.easymorph.com/user_avatar/community.easymorph.com/mat_c/32/3649_2.png) [@Mat\_C](https://community.easymorph.com/u/Mat_C)\
**Post date:** [December 15, 2021, 4:34pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/4 "2021-12-15T16:34:54Z")

</div>

Hello Dmitry,  
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.

Regards,  
Mat

---

<div class="post-metadata">

**Author:** ![ThisThatTheOther](https://community.easymorph.com/letter_avatar_proxy/v4/letter/t/e5b9ba/32.png) [@ThisThatTheOther](https://community.easymorph.com/u/ThisThatTheOther)\
**Post date:** [December 15, 2021, 7:05pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/5 "2021-12-15T19:05:19Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [December 15, 2021, 8:25pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/6 "2021-12-15T20:25:16Z")

</div>

Use version 5.1 for now. We'll investigate what's going on with 5.1.1.

---

<div class="post-metadata">

**Author:** ![ckononenko](https://community.easymorph.com/user_avatar/community.easymorph.com/ckononenko/32/7044_2.png) [@ckononenko](https://community.easymorph.com/u/ckononenko)\
**Post date:** [December 16, 2021, 12:58pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/7 "2021-12-16T12:58:38Z")

</div>

Could you please do the following steps:

1. Set Authentication to None in the data connector.
2. Configure Web Request action to use the same data connector, HTTP method, and URL.
3. Add columns with repose code and headers to the response
4. Run Web Request and send us the content of the WWW-Authenticate and Response-HttpCode columns.

 ![image](https://community.easymorph.com/uploads/default/original/2X/0/04eba5b4b600d5792e725043c16de106dc9dfc81.png)

---

<div class="post-metadata">

**Author:** ![Mat\_C](https://community.easymorph.com/user_avatar/community.easymorph.com/mat_c/32/3649_2.png) [@Mat\_C](https://community.easymorph.com/u/Mat_C)\
**Post date:** [December 16, 2021, 2:46pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/8 "2021-12-16T14:46:44Z")

</div>

Hello,  
Here's a screen shot after doing as requested in version 5.1.1.1.

 ![image](https://community.easymorph.com/uploads/default/original/2X/0/0d42efd0e546b115f76dd93217d0431e5149b1c0.png)  
There isn't a WWW-Authenticate column

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [December 21, 2021, 3:08pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/9 "2021-12-21T15:08:54Z")

</div>

We've updated version 5.1.1. Can you please try the [updated version](https://easymorph.com/download.html) and see if the problem is now resolved?

---

<div class="post-metadata">

**Author:** ![Mat\_C](https://community.easymorph.com/user_avatar/community.easymorph.com/mat_c/32/3649_2.png) [@Mat\_C](https://community.easymorph.com/u/Mat_C)\
**Post date:** [December 21, 2021, 3:40pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/10 "2021-12-21T15:40:23Z")

</div>

Hello,  
Just installed Desktop 5.1.1 build 2 and it work fine now. Thanks.

Is the server version also fixed?

Thanks.

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [December 21, 2021, 4:02pm UTC](https://community.easymorph.com/t/import-from-web-api-error/3260/11 "2021-12-21T16:02:55Z")

</div>

Yes, the Server has also been fixed.
