Giter Site home page Giter Site logo

alexa.net.notifications's Issues

The authentication token is not valid

Hi, I'm trying to follow step by step this intresting article in your blog: https://www.imacode.ninja/2018/02/09/requiring-assistance-aws-iot-alexa-push-notifications-net-core

but during the first copy and paste test inside my skill I retrive this error.

Below the code:

var client = new NotificationClient(
NotificationClient.NorthAmericaEndpoint,
input.Context.System.ApiAccessToken);
 
var display = new DisplayInfo();
display.Content.Add(new DisplayContent {
Title="Assistance Requested", 
Body="Assistance has been requested", 
Toast = new ContentItem("Someone needs help"),  
Locale = "en-US" });
 
var spoken = new SpokenInfo();
spoken.Content.Add(new SpokenText("en-US", "please help"));
 
var reference = "messageuser-" + DateTime.UtcNow.ToString("yyyyMMddHHmmss");
                         
var notify = await client.Create(
  display,
  spoken,
  reference,
  DateTime.Now.AddSeconds(30)
);

Output from CloudWatch Log:

One or more errors occurred. (The authentication token is not valid.): AggregateException
 at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
 at lambda_method(Closure , Stream , Stream , LambdaContextInternal )

 at Alexa.NET.NotificationClient.Create(CreateUpdateRequest request)

Any suggestion?

In the Skill Permission tab I don't see any Notification Capabilities. Where I can find it?

Regards
Andrea

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.