Share via

Passing bearer token in Web activity : Error Code 2108, Error calling the endpoint in Web activity in adf

teja gudipati 21 Reputation points
2021-05-10T04:03:00.617+00:00

Hi when I use web activity using authorization as Header, I am getting below error

Error calling the endpoint 'https://******************/rest/v1/activities/types.json?access_token='. Response status code: ''. More details:Exception message: 'The format of value 'e71d047d-348d-49c5-a088-480ac11849ab:sn' is invalid.'. No response from the endpoint. Possible causes: network connectivity, DNS failure, server certificate validation or timeout

When I use the access_token manually in the api ,It is working fine, but when i pass the Authorization from previous web activity, it is giving the above error.

Any help why it is causing an error
95133-image.png

here is the url as an example : https://*************8/rest/v1/activities/types.json?access_token=

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

Answer accepted by question author

HimanshuSinha 19,637 Reputation points Microsoft Employee Moderator
2021-05-10T19:18:11.467+00:00

Hello @,
Thanks for the ask and using the Microsoft Q&A platform .
I am not sure how you have constructed the variable token , but just wanted you to know that it should have "Bearer[Space} thetoeknGHuid"
So can I request you to try the expression for Authrization header
to

@markus.bohland@hotmail.de ( 'Bearer ',variables('token'))

and then send the request .

Please do let me know how it goes .
Thanks
Himanshu
Please do consider to click on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.