question

Miss Prof avatar image
Miss Prof asked

Alexa ISP Github example doesn't work. Can't fetch ISP API details

I'm working on a skill and I was trying to add in Isp. It wasn't working so I decided to test it with the github example shown here. https://github.com/alexa/skill-sample-nodejs-fact-in-skill-purchases/blob/master/README.md. That is not working either. I can't seem to get access to the isp api details and it keeps saying failed to load products. I see that the isp products that I made are in my config file but I can't seem to get it to work. Thank you in advance.

alexa skills kitapiisp
3 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

When I log the handlerInput.serviceClientFactory.getMonetizationServiceClient() this is what I get:

{ apiClient: DefaultApiClient {},
apiEndpoint: 'https://api.eu.amazonalexa.com',
authorizationValue: (A long Value)

}

0 Likes 0 ·

The issue for you is because you are calling the EU Alexa endpoint to fetch ISP details. We do not support calling EU endpoint for getting ISP information. You need to call https://api.amazonalexa.com instead.

0 Likes 0 ·

Thanks for looking into it. When you go in that api.eu the error called is this 'the server responded with a status of 404 (Not Found)'

0 Likes 0 ·
KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

Could you let us know what is your skill Id?

13 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

its: amzn1.ask.skill.99350e07-1384-4a7c-9367-c7cc7a9cddfa thank you

0 Likes 0 ·

I have the same issue, please update when you find the issue. Thanks

0 Likes 0 ·

Sure, could you let me know your skillId as well?

1 Like 1 ·
Hugo avatar image Hugo KAIYIN@AMAZON.COM ·

it is: amzn1.ask.skill.078ba1dc-da43-4bd6-ac90-dd91c1d77605 Thanks

0 Likes 0 ·
Show more comments
KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

Also, @all: we are developing the feature for enabling calling from UK endpoint. We will update you in this thread once it's live! Thank you for your patience.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

Hi developers: there is a way to bypass this issue now. If you are testing the ISP using your developer.com account, the issue will be gone if you make it a US account. This would require you to change your primary address on their developer account to a US address and then go through the PFM migration wizard.

2 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks for the update. Will we get a solution that does not involve editing our developer account every time we want to test ISP in the US, or will this be the only way for now?

0 Likes 0 ·

Hi, after the fix, you will be able to see the ISPs under your skill, but these skills will be non-purchasable under your account because your account is outside of US. If you need to test your skill enablement, you always need to have a non-US account to test it.

0 Likes 0 ·