Coder Social home page Coder Social logo

Comments (9)

stoiveyp avatar stoiveyp commented on August 29, 2024 2

Event region fixed in v3.2.2

from alexa.net.management.

stoiveyp avatar stoiveyp commented on August 29, 2024

Hi @Crispin-at-Linknode - I'm not sure what you're asking for.

SSL Isn't required on Lambda ARN endpoints - but it's in the CustomApiEndpoint class. Could you point me to whereabouts in the schema you believe it's missing so I can investigate and fix.

Thank you.

from alexa.net.management.

Crispin-at-Linknode avatar Crispin-at-Linknode commented on August 29, 2024

See below for a sample of the model for a notifications API. This indeed passes the schema, however in the Amazon skill publication are it will fail the "Functional Test" validation with an SSL warning.

To pass, I had to add the "sslCertificateType" not only to the apis/custom/endpoint/uri but ALSO to the events/endpoint/uri and the regions/EU/endpoint/uri e.g.

"regions": {
  "EU": {
    "endpoint": {
      "uri": "https://XXXXX.azurewebsites.net/api/Function1",
      "sslCertificateType": "Wildcard"
    }
  }
}

When I used the current head of Alexa.NET.Management.UWPApp that references Alexa.NET.Management I could not edit the model and "Publish Model" until I did some code hacking to add sslCertificateType to these endpoints.

I hope that's clearer. It's a bind to create a new skill to test it all out on I know.

  • quick edit to anonymise my function names

Model as per head support of .NET.Management

"permissions": [
{
"name": "alexa::devices:all:notifications:write"
}
],
"events": {
"publications": [
{
"eventName": "AMAZON.WeatherAlert.Activated"
},
{
"eventName": "AMAZON.MessageAlert.Activated"
}
],
"endpoint": {
"uri": "https://XXXXX.azurewebsites.net/api/Function1"
},
"subscriptions": [
{
"eventName": "SKILL_PROACTIVE_SUBSCRIPTION_CHANGED"
}
],
"regions": {
"EU": {
"endpoint": {
"uri": "https://XXXXX.azurewebsites.net/api/Function1"
}
}
}
}
}

from alexa.net.management.

stoiveyp avatar stoiveyp commented on August 29, 2024

That's much clearer, thank you 👍

I'll try and take a look as soon as I can

from alexa.net.management.

stoiveyp avatar stoiveyp commented on August 29, 2024

@Crispin-at-Linknode The endpoints have been consolidated in v3.1.0 so they all have the SslCertificateType option. If there's any problem with the change then re-open the issue 👍

from alexa.net.management.

Crispin-at-Linknode avatar Crispin-at-Linknode commented on August 29, 2024

I think a partial success, but remaining issue may be due to a different schema update required.

I am reading the model via the Alexa.NET.Management.UWPApp sample project that helps with everything CLI/ASK

I see the events endpoint has the wildcard shown OK - big tick, thank you.
But the /events/regions can contain different endpoints for the EU, FE, US. See my example from earlier (#51 (comment)) has lost the EU Uri and Wildcard somewhere in the serialisation/deserialization when viewing with Alexa.NET.Management.UWPApp and Alexa.NET.Management

I did have an additional schema "hack" to add the EU region in my copy of the Alexa.Net.Management master but it wasn't a proper solution.
Maybe I don't need an EU within regions within the event as I already have a generic endpoint. But references I copied implied I do (eg https://github.com/skilltemplates/proactive-events-api/blob/master/skill.json)

{
"eventName": "AMAZON.Occasion.Updated"
}
],
"subscriptions": [
{
"eventName": "SKILL_PROACTIVE_SUBSCRIPTION_CHANGED"
}
],
"regions": {
"EU": {
"uri": null // ***** LOST IN TRANSLATION, ALSO THE SSLCERTIFICATETYPE ******
}
}
}
}

from alexa.net.management.

Crispin-at-Linknode avatar Crispin-at-Linknode commented on August 29, 2024

from alexa.net.management.

stoiveyp avatar stoiveyp commented on August 29, 2024

Hi @Crispin-at-Linknode - the region endpoints were changed in v3.1.0:

https://github.com/stoiveyp/Alexa.NET.Management/blob/master/Alexa.NET.Management/Api/CustomApi.cs#L12
https://github.com/stoiveyp/Alexa.NET.Management/blob/master/Alexa.NET.Management/Api/CustomApiRegion.cs#L8

If this isn't what you're referring to, or there's a particular issue with your skills, then could you please supply code/screenshots/links so that I have a better idea of the issue you're experiencing 👍

from alexa.net.management.

Crispin-at-Linknode avatar Crispin-at-Linknode commented on August 29, 2024

Steps to replicate, hopefully readable:

  1. Checkout stoiveyp/Alexa.NET.Management.UWPApp (and ensure nuget packages are most recent Alexa.NET.Management)

  2. Create a new Skill

  3. Run Alexa.NET.Management.UWPApp - observe model as per image "Skill51-A"
    Skill51-A

  4. Add JSON to model to support notifications - as per image "Skills51-B"
    (JSON snippet can be copied from #51 (comment) and add sslCertificateType)
    Skill51-B

  5. Put breakpoint on line 36 of StageModel.xaml.cs
    await ((SkillSummaryViewModel) this.DataContext).SetSkill(events);

  6. Use VS variable watch on "manifest" to see how DeserialiseObject on Manifest.Text isn't deserialising properly resulting in null for the endpoint and sslCertificate

  7. Leading to failure to commit change to model with Amazon error:

{"message":"Skill manifest is not valid.","violations":[{"message":"events.regions.EU - object has missing required properties (["endpoint"])"}]}

from alexa.net.management.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.