I have a web activity which calls an Azure function that expects a JSON payload and returns a JSON payload. My function is available on public endpoint and works well with header content-type-application/json and the json data in Body. While calling webactivity I get a 2108 error
{
"errorCode": "2108",
"message": "Error calling the endpoint. Response status code: ",
"failureType": "UserError",
"target": "WebActivity1"
}
There is no error defined here, I don't know what else can i do to debug this.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@brijrajsingh Thank you for reaching out. At this time we are reviewing the ask and will provide an update as appropriate
@brijrajsingh Could you please check the response time of your endpoint?
The web activity will timeout at 1 minute with similar error if it does not receive a response from the endpoint.
My endpoint is responding well within few seconds only.
@brijrajsingh Apologizes for the late response. This issue looks like specific used case scenario and not related to document content, we request you to please post your question on "_MSDN - Azure Data Factory_" and other forums (_Stackoverflow - Azure Data Factory_). We have our engineers and others who are monitoring them and will be happy to help.
Please share MSDN/Stackoverflow thread link here, once they are created.
If you have a document which you are following and if you think it needs an update, please let us know about that here.
Please share the MSDN/stackoverflow link for tracking this issue.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.
Hi @KranthiPakala-MSFT @brijrajsingh understand that this issue is from a while back, but just wanted to know if this was resolved ? I'm also encountering the same error. The web activity was working 100% previously and all of a sudden gave me this error code as well.
Please let me know, thanks!
@KranthiPakala-MSFT This still seem to be an issue as we are facing same issue. The api seem to be responding fine when invoked from Postman but fails when invoked from ADF Web Activity.
Api is simple - Uses basic authentication, tried configuring it web activity i.e. reading password from Azure key vault but always returns with 401 Unauthorized.
Just thought I would leave my two cents here in case anyone comes across the same problem.
In my particular case the API I was integrating was returning a HTTP status 301 redirect to include a trailing slash in the URL.
It would seem that the web activity in Azure Data Factory does not currently support following redirects, meanwhile Postman and other tools and libraries usually follow redirects by default or include a option for handling them.
The docs should probably be updated to mention this