Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

"Error: Unknown command: protocol" when following example from serverless readme #387

Open
@smoll

Description

@smoll

This is a Bug Report

Description

I followed the steps listed in https://github.com/graphcool/chromeless/tree/master/serverless with the following changes

custom:
  stage: dev
- debug: "*"
- awsIotHost: ${env:AWS_IOT_HOST}
+ debug: false
+ awsIotHost: myiotendp.iot.us-east-2.amazonaws.com
  chrome:
    functions:
      - run
@ -12,7 +12,7 @@ provider:
  name: aws
  runtime: nodejs6.10
  stage: ${self:custom.stage}
- region: eu-west-1
+ region: us-east-2
  environment:
    DEBUG: ${self:custom.debug}
    AWS_IOT_HOST: ${self:custom.awsIotHost}

However, when I ran the full example https://github.com/graphcool/chromeless/tree/master/serverless#full-example I get the following error:

$ node spike.js
Error: Unknown command: protocol

I also tried updating the chromeless dependency in https://github.com/graphcool/chromeless/blob/master/serverless/package.json#L15 to 1.4.0 but that didn't seem to change anything.

Additional Data

  • Chromeless Version you're using: 1.3.0 or 1.4.0
  • Operating System: macOS High Sierra 10.13
  • Stack Trace: not sure how to get a better stack trace, please advise
  • Error messages: when I add debug: true to the opts, I see one additional log statement
$ node spike.js
Connected to message broker.
Running remotely: {"type":"goto","url":"https://www.google.com"}
Error: Unknown command: protocol

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions