Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

APIs Build an Alexa Skill Testing and Publishing an Alexa Skill Testing an Alexa Skill

Tom Petryshen
Tom Petryshen
832 Points

The remote endpoint could not be called, or the response it returned was invalid. How do I fix this?

When I try to use the service simulator I get an error in the Lambda Response saying "The remote endpoint could not be called, or the response it returned was invalid." I changed some of the lines of code in the json files but didn't mess with the 'index.js' file. What do I do to fix this?

Steven Parker
Steven Parker
231,184 Points

:mailbox_with_mail: Hi, I got your request.

But I have not seen this error myself. Perhaps if you post the code here (please be sure to format it using Markdown), someone might be able to spot the issue.

Nyle Cohen
Nyle Cohen
448 Points

I am having the same problem. If I attempt to test it will come with this error message. This happens when I am using a .Zip or editing the code inline

Steven Parker
Steven Parker
231,184 Points

Nyle Cohen — Try starting a new question and be sure to show your code in it.

After setup but before publish, i could test skill on 'Service Simulator' but not on echosim.io. does anyone know why?

2 Answers

when you are in the directory containing your index.js, node_modules, etc. files. run this command below.

zip -r ../yourfilename.zip *

Liam Burns
Liam Burns
1,190 Points

I had this issue and found the answer to my problems here in the questions on a video a just ahead in the course.

https://teamtreehouse.com/community/i-cant-make-a-change-on-alexa-custom-skill-an-error-occurs-by-adding-item-on-definitionjson