Hi Jonathan,
Thank you for writing this great article. I followed the steps correctly until the preview step. Then I got an error and so used the test action. However, I got a further error. I would appreciate if you could assist me here. Thank you for your attention.
Error 1 that made me use test:
./gactions preview — action_package action.json — invocation_name “three doors” — preview_mins 1234
2017/08/24 13:07:50 Preview is a legacy command, and project three-doors-0603 is not a legacy project. Please use the new ‘test’ command instead
Error 2 when using test:
./gactions test — action_package action.json — project “three-doors-0603” — preview_mins 1234
Pushing the app for the Assistant for testing…
ERROR: Failed to test the app for the Assistant
ERROR: Invalid JSON payload received. Unknown name “http_execution” at ‘preview_action_package.action_package.actions[0]’: Cannot find field.
Invalid JSON payload received. Unknown name “initial_trigger” at ‘preview_action_package.action_package.actions[0]’: Cannot find field.
Invalid JSON payload received. Unknown name “agent_info” at ‘preview_action_package.action_package’: Cannot find field.
Invalid JSON payload received. Unknown name “version_label” at ‘preview_action_package.action_package’: Cannot find field.
Field Violations:
# Field Description
1 preview_action_package.action_package.actions[0] Invalid JSON payload received. Unknown name “http_execution” at ‘preview_action_package.action_package.actions[0]’: Cannot find field.
2 preview_action_package.action_package.actions[0] Invalid JSON payload received. Unknown name “initial_trigger” at ‘preview_action_package.action_package.actions[0]’: Cannot find field.
3 preview_action_package.action_package Invalid JSON payload received. Unknown name “agent_info” at ‘preview_action_package.action_package’: Cannot find field.
4 preview_action_package.action_package Invalid JSON payload received. Unknown name “version_label” at ‘preview_action_package.action_package’: Cannot find field.
2017/08/24 13:08:23 Server did not return HTTP 200
