Giter Site home page Giter Site logo

Comments (7)

DotNetPat avatar DotNetPat commented on August 28, 2024

Hey, I kind of have the same issue. Even when I try to return the sample of the discovery response as it is (https://github.com/alexa/alexa-smarthome/blob/master/sample_messages/Discovery/Discovery.response.json). The validator says its valid and also the validator says, that mine is valid too. But Alexa simply says she was not able to find any new devices.

I also submited this to Alexa support but i just got kind of an automated message, nothing informative that could help to solve the issue.

This is my post: https://forums.developer.amazon.com/questions/109213/devices-not-discovered.html

from alexa-smarthome.

rajeshdhoot avatar rajeshdhoot commented on August 28, 2024

Hi @DotNetPat,
Initially I was using custom Lambda Handler "RequestHandler", The I switch over to Stream Request Handler, "RequestStreamHandler", with this change my problem get solved.
Hope this may help you. All the best!

from alexa-smarthome.

DotNetPat avatar DotNetPat commented on August 28, 2024

Unfortunately it did not fix the problem, Im not using Java anyway. I have no clue why a valid response and also the sample response is not working when returned on discovery. perhaps its because its hosted in Ireland xD But im forced to host it in Ireland, because my Alexa is speaking German. Anyway, without information about the processing of the response in Alexa it seems to be impossible ...

from alexa-smarthome.

rajeshdhoot avatar rajeshdhoot commented on August 28, 2024

You have to select that language which is supported in the region of your Lambda function. Check your Lambda function Region and language of Skill.

from alexa-smarthome.

DotNetPat avatar DotNetPat commented on August 28, 2024

Found it out, god such a silly mistake. I built up the response as an anonymous obejct graph. But I serialized it before returning, so it got serialized twice because returning an object graph triggers serialization xD

from alexa-smarthome.

mikemaas-amazon avatar mikemaas-amazon commented on August 28, 2024

I have had something like this happen to me when using Python and returning not just a dict, but a dict dumped as a JSON string. Usually a quick look at the logs and the oddly serialized response contents sets me back on track.

from alexa-smarthome.

rajeshdhoot avatar rajeshdhoot commented on August 28, 2024

Great Job. It is working. Congratulations!

from alexa-smarthome.

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.