Comments (4)
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.
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.
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.
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)
- “NoSuchMethodErrors” due to multiple versions of com.fasterxml.jackson.core:jackson-core:jar HOT 6
- com.amazon.ask.exception.AskSdkException: Could not find a skill to handle the incoming request HOT 2
- Accept Grant handler HOT 1
- Jackson cannot deserialze errors HOT 4
- Delegate directives from LaunchRequest should be able to come back to the skill as IntentRequests HOT 3
- Alwxa HOT 1
- maven artifacts for ASK SDK for Java should not depend on an SLF4J binding, but only the API
- Hello World Servlet - There was a problem with the requested skill's response HOT 2
- ServiceClientFactory in SMAPI SDK clashes with core one HOT 2
- Release notes for 2.38.0 missing HOT 1
- Conflicting persistence adapter configuration HOT 1
- Dependency org.apache.httpcomponents:httpclient, leading to CVE problem HOT 1
- Releases are outdated HOT 1
- Missing CI on PRs HOT 2
- Feature: support SHA256withRSA algorithm for signature HOT 1
- Missing withExperimentation method in ResponseBuilder for ask-sdk-core 2.42.3 HOT 1
- Deserialization of non-published Requests fails
- CVE-2022-31159 vulnerable
- missing assertions on unit tests
- migrate from Java EE to Jakarta EE HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alexa-skills-kit-sdk-for-java.