jovotech / jovo-framework

🔈 The React for Voice and Chat: Build Apps for Alexa, Messenger, Instagram, the Web, and more
https://www.jovo.tech
Apache License 2.0
1.68k stars 309 forks source link

jovo new project creation issue #148

Closed GAjayKumar closed 6 years ago

GAjayKumar commented 6 years ago

Hi,

I have an issue while creating new jovo script like below,

I'm setting everything up

V Creating new directory /HelloWorld | Downloading and extracting template helloworld Installing npm dependencies events.js:183 throw er; // Unhandled 'error' event ^

Error: connect ECONNREFUSED at Object._errnoException () at _exceptionWithHostPort () at TCPConnectWrap.afterConnect [as oncomplete] ()

please help me out.

Thanks, Ajay

jankoenig commented 6 years ago

Hey there. Seems like this was a problem with npm.

Can you go into the project directory (cd HelloWorld) and try this?

rm -rf node_modules
npm cache clean
npm install
GAjayKumar commented 6 years ago

Thank you jankoenig, It helped But after doing it i ran this command Jovo run

it stopped with

PS C:\Alexa\Hello World\HelloWorld> jovo run Example server listening on port 3000!

not giving me webhook url.

Regards.

jankoenig commented 6 years ago

What happens if you open a new tab and do jovo run --webhook-only?

GAjayKumar commented 6 years ago

i got webhook url with jovo init command. is it fine

jankoenig commented 6 years ago

OK great. Closing this then

GAjayKumar commented 6 years ago

can you help

PS C:\Users\user> jovo deploy

Deploying Alexa Skill x Creating Alexa Skill project for ASK profile default -> Unexpected end of JSON input Deploying Interaction Model, waiting for build

Unexpected end of JSON input

jankoenig commented 6 years ago

Seems like you did some changes to the JSON that make it invalid, try testing it in a tool like this https://jsonlint.com/

GAjayKumar commented 6 years ago

Firstly i didn't make any changes to any json file and i have tested the json files in the link you provided, it is showing as valid json.

GAjayKumar commented 6 years ago

waiting for reply.

jankoenig commented 6 years ago

Difficult to debug without further information. Have you made any changes to the project or is this a fresh new installation? Did you run "jovo deploy" while being in the root of your project directory?

GAjayKumar commented 6 years ago

it's fresh i didn't make any changes. yes i ran "jovo deploy " in the root of your project directory.

GAjayKumar commented 6 years ago

First i started with

1.Npm install -g jovo-cli 2.jovo new helloworld 3.jovo init alexaskill 4.npm install -g ask-cli 5.jovo build 6.jovo deploy

these are tha commands i ran i order at jovo deploy its is showing this error

PS C:\Users\user> jovo deploy

Deploying Alexa Skill x Creating Alexa Skill project for ASK profile default -> Unexpected end of JSON input Deploying Interaction Model, waiting for build

Unexpected end of JSON input

Thanks.

jankoenig commented 6 years ago

Did you do "cd helloworld" between steps 2 and 3? It is important to do all project-related things in the project directory

GAjayKumar commented 6 years ago

i have done in project directory only .in the project directory it self it is showing the error.

jankoenig commented 6 years ago

How does your platforms/alexaSkill/models folder look like? Any files in there? Can you paste the content of the file?

GAjayKumar commented 6 years ago

yes one file was present in it and content pasted below

{ "interactionModel": { "languageModel": { "invocationName": "my test app", "types": [], "intents": [ { "name": "HelloWorldIntent", "samples": [ "hello", "say hello", "say hello world" ] }, { "name": "MyNameIsIntent", "samples": [ "{name}", "my name is {name}", "i am {name}", "you can call me {name}" ], "slots": [ { "name": "name", "type": "AMAZON.US_FIRST_NAME" } ] }, { "name": "AMAZON.CancelIntent", "samples": [] }, { "name": "AMAZON.HelpIntent", "samples": [] }, { "name": "AMAZON.StopIntent", "samples": [] } ] } } }

aswetlow commented 6 years ago

What's in your skill.json in /platforms/alexaSkill ?

GAjayKumar commented 6 years ago

Hi aswetlow,

skill.json content listed below,

{ "manifest": { "publishingInformation": { "locales": { "en-US": { "summary": "Sample Short Description", "examplePhrases": [ "Alexa open hello world" ], "name": "HelloWorld", "description": "Sample Full Description" } }, "isAvailableWorldwide": true, "testingInstructions": "Sample Testing Instructions.", "category": "EDUCATION_AND_REFERENCE", "distributionCountries": [] }, "apis": { "custom": { "endpoint": { "sslCertificateType": "Wildcard", "uri": "https://webhook.jovo.cloud/2ef0ef34-0468-4730-a755-b1285065917b" } } }, "manifestVersion": "1.0" } }

Thanks, Ajay

GAjayKumar commented 6 years ago

Any Clue

GAjayKumar commented 6 years ago

Can i get this Fixed.

jankoenig commented 6 years ago

hi @GAjayKumar, what happens if you create a completely new project? same error?

GAjayKumar commented 6 years ago

Yes Jankoenig,

I have Done clearing everything still same issue.

Thanks.

jankoenig commented 6 years ago

what node version are you using? did it create a project in the Alexa Developer Console?

GAjayKumar commented 6 years ago

iam using NPM -5.6.0 and NODE-v8.11.1. i have created the project in alexa developer console.

GAjayKumar commented 6 years ago

i followed this link https://www.jovo.tech/blog/alexa-skill-tutorial-nodejs/#app-configuration

GAjayKumar commented 6 years ago

you can refer image image

jankoenig commented 6 years ago

What happens if you let the Jovo CLI create the project. Maybe this tutorial is better https://youtu.be/i84TXkIenR4

GAjayKumar commented 6 years ago

if you can see top 1 st message i tried with Jovo new HelloWorld but i got error for that then i downloaded sample hello world manually. image Although i will check with the link you provided.

Thanks A lot.

jankoenig commented 6 years ago

Seems like there was a connection error. I'd try it again and see if this changes anything

luciilucii commented 6 years ago

Was facing the same issue. I didn't had ask cli installed when I wanted to deploy with jovo. So I added it later, but I was still getting the missing json error, even when I closed the terminal trying jovo build

Then I deleted the project & started the process again. Then it worked fine.

just fyi

rhokstar commented 5 years ago

A problem that AWS doesn't address clearly is the difference between AWS Console Account and Alexa Developer Account.

Troubleshoot:

1) If you're getting these errors during ask init:

Switch to 'Login with Amazon' page...
Tokens fetched and recorded in ask-cli config.
Call list-vendors error.
Error code: 401
{
  "message": "You are not authorized to access this operation."
}

Or during ask status -p [your profile]

[Error]: Cannot resolve profile [your profile]

2) If you haven't completed the Alexa Developer Account registration, finish this first and then ask init. Then execute jovo deploy. This should result in Deployment completed