question

RobbertvanderKooiHestronicBV-2802 avatar image
0 Votes"
RobbertvanderKooiHestronicBV-2802 asked ThomasCosynStudentatCentraleSupele-0346 commented

DataFactory RESTAPI 406 not Acceptable

Hello,

I have a problem with the Source in DataFactory with REST API.

I get the following error:

Failure happened on 'Source' side. ErrorCode=RestSourceCallFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The HttpStatusCode 406 indicates failure. Request URL: https://xxxxx Response payload:{"type":"/doc/v1/errors#AC001","title":"The requested format cannot be returned","status":406,"identifier":"949bdf27-aa49-48b2-95f2-62914efb3bce","code":"AC001","extraInfo":{"message":"HTTP 406 Not Acceptable"}},Source=Microsoft.DataTransfer.ClientLibrary,'

When i open it with Postman or Curl i don't have any issue.

Also when i choose in DataFactory Source is HTTP then i get values from the GET request.. but my prefer get out to REST API for pagerules.

Can anybody help me?

azure-data-factory
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @RobbertvanderKooiHestronicBV-2802 ,
Thanks for the ask and using the Microsoft Q&A platform .One difference which I can see is the default encoding which is set in HTTP but not in REST . The API which you are calling does it expect a default encoding ?

Please do let me know how it goes .
Thanks
Himanshu

0 Votes 0 ·

I have exactly the same problem. I tried to add headers Accept-Language and Accept-Charset but it didn't work either. The error message just switched to french after I added Accept-Language:fr.
It would be nice to understand why it doesn't work

0 Votes 0 ·

Hello @RobbertvanderKooiHestronicBV-2802 ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .In case if you have any resolution please do share that same with the community as it can be helpful to others . Otherwise, will respond back with the more details and we will try to help .
Thanks
Himanshu

0 Votes 0 ·

Hello @RobbertvanderKooiHestronicBV-2802 ,

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .In case if you have any resolution please do share that same with the community as it can be helpful to others . Otherwise, will respond back with the more details and we will try to help .
Thanks
Himanshu

0 Votes 0 ·

0 Answers