Target API returns "Unsupported.Feature" error

Avatar

Avatar
Validate 1
Level 1
marc_blecher
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
marc_blecher
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
marc_blecher
Level 1

18-10-2016

Hello,

I'm trying to get detail data of an ab activity via the API using the following methode:

Get AB activity by id
get: /{tenant}/target/activities/ab/{id}

The API works well for other method calls but for this one it returns the following error:

{"httpStatus":406,"errors":[{"errorCode":"Unsupported.Feature","message":"Unsupported features detected"}]}

Can you help me with this issue?

Regards
Marc

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

26-10-2016

Hi Marc / Abhaya,

The only reason that Actiivity cannot be fetched through the Honeybee API (the API calls going through adobe.io) is because it uses selectors or clickTrackSelectors. The Activity seems to have been created in Target Standard and you are trying to fetch it through honeybee APIs. Since the Activity structure is based on an internal implementation detail (selectors), that we don't want to expose to the outside world, the API throws an UnsupportedOperationException.
Please only fetch those activity that you have created through the API.

Thanks & Regards

Parit Mittal



 

Answers (7)

Answers (7)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

02-11-2016

Hi Marc,

Yes, I have forwarded the same to the concerned team. Thanks for the feedback .

Thanks & Regards

Parit Mittal

Avatar

Avatar
Validate 1
Level 1
marc_blecher
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
marc_blecher
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
marc_blecher
Level 1

28-10-2016

So I would strongly suggest to mention this restriction in the documentation. 😞

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

25-10-2016

Hi Mark ,

I have reached out to the concerned team and looking for their response for the same .

I will get back to you on this ASAP.

Thanks & Regards 

Parit Mittal

Avatar

Avatar
Validate 1
Level 1
marc_blecher
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
marc_blecher
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
marc_blecher
Level 1

25-10-2016

Hi Parit!

No idea? Do you need more informations?

Avatar

Avatar
Employee
abhayat8799898
Employee

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Employee
abhayat8799898
Employee

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
abhayat8799898
Employee

25-10-2016

Hi Parit,

I am getting the exact same error as described by Marc.

The Request is in below format

curl -X GET -H "Content-Type: application/vnd.adobe.target.v1+json" -H "X-Api-Key: " -H "Authorization: Bearer " -H "Cache-Control: no-cache" https://mc.adobe.io/<tenant>/target/activities/ab/<ActivityID>/

And the response is

{"httpStatus":406,"requestId":"xs5GW5DZpYwOOWkhQSEhKKUdRSg5GH9u","requestTime":"2016-10-25T07:18:41.612Z","errors":[{"errorCode":"Unsupported.Feature","message":"Unsupported features detected"}]}

Avatar

Avatar
Validate 1
Level 1
marc_blecher
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
marc_blecher
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
marc_blecher
Level 1

20-10-2016

Hi Parit,

what else could be the reason of this error? Because what you describe is exacly what I'm doing.

Here a more detailed example:

First of all I reading all ab activities

curl -X GET -H "Content-Type: application/vnd.adobe.target.v1+json" -H "X-Api-Key: XYZ" -H "Authorization: Bearer XYZ" -H "Cache-Control: no-cache" https://mc.adobe.io/XYZ/target/activities/?type=ab

This works well. Then I try to receive more details about a particular activity:

curl -X GET -H "Content-Type: application/vnd.adobe.target.v1+json" -H "X-Api-Key: XYZ" -H "Authorization: Bearer XYZ" -H "Cache-Control: no-cache" https://mc.adobe.io/XYZ/target/activities/ab/1234/

The response is then:

{"httpStatus":406,"requestId":"1ZMEXBjUfLWrjqR2ds4amKYosSPCMhok","requestTime":"2016-10-20T09:04:15.723Z","errors":[{"errorCode":"Unsupported.Feature","message":"Unsupported features detected"}]}

Regards
Marc

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

19-10-2016

Hi Marc ,

The httpStatus code "406" signifies That  the requested representation is not supported, i.e. anything besides JSON.

Hence to fetch the current definition of a AB activity if it is found as referenced by the id the request should be like :

curl -X GET -H "Content-Type: application/vnd.adobe.target.v1+json" -H "X-Api-Key: " -H "Authorization: Bearer " -H "Cache-Control: no-cache" https://mc.adobe.io/your-tenant/target/activities/ab/8778/

Please see the following links for more information : 

https://www.adobe.io/products/target/docs/getting-started

https://www.adobe.io/products/target/docs/reference/abxt#ActivityList

Thanks & Regards

Parit Mittal