Giter Site home page Giter Site logo

Comments (4)

 avatar commented on August 16, 2024

Hey @WillCodeForEver

Which test console are you testing from? Can you send a snippet of the JSON you're sending?

from alexa-skills-kit-sdk-for-java.

WillCodeForEver avatar WillCodeForEver commented on August 16, 2024

hey thanks for the reply. I am using Alexa "Test" console under and using the "Text" where I type the utterance and it generates the JSON request:
here is the sample request with some masked attributes

  "session": {
    "sessionId": "SessionId.fxxx",
    "application": {
      "applicationId": "xxx"
    },
    "attributes": {
      "currentState": "LISTING"
    },
    "user": {
      "userId": "xxx"
    },
    "new": false
  },
  "request": {
    "type": "IntentRequest",
    "requestId": "EdwRequestId.24e6c8e1-7b74-408c-bbfd-84214bb73cbc",
    "locale": "en-US",
    "timestamp": "2017-07-03T23:48:57Z",
    "intent": {
      "name": "MyIntent",
      "slots": {
        "Item": {
          "name": "Item",
          "value": "smoothie"
        }
      }
    }
  },
  "version": "1.0"
}```

let me know if you need anything else

from alexa-skills-kit-sdk-for-java.

 avatar commented on August 16, 2024

Thanks for sending the JSON!

I see why context is null, according to the Alexa JSON reference "all requests contain the version, context and request objects at the top level".

The JSON generated by the test console doesn't appear to be populating a context object. Which explains why you're getting a null value.

I've reached out to folks on our side to look into the issue on the test console. In the interim, you can curate your own context by referencing the request body syntax and pasting the contents into the JSON tab on the service simulator.

from alexa-skills-kit-sdk-for-java.

WillCodeForEver avatar WillCodeForEver commented on August 16, 2024

thanks for the reply. Yes I did read that doc multiple times and noticed the context object missing from the json. I can use the JSON console but since i am working on a conversational skill where i maintain session variables it will be a lot more effort to copy/paste and adjust the variables for each step.

Thank you for reaching out to the internal team so they can fix the Test Console.

For now I've coded it so if i detect a NULL context i assume the request is from Test Console and it supports the Echo Show directives and return the correct set of directives.

from alexa-skills-kit-sdk-for-java.

Related Issues (20)

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.