Expand my Community achievements bar.

SOLVED

Error The path argument must be of type string - Headless app

Avatar

Community Advisor

Hey Guys! 

@dr_venture 

This one is new tried both on mac and windows, i get the error 

Error: The "path" argument must be of type string. Received undefined. 

I get this when i'm trying to create simple headless app from the codelab --> https://developer.adobe.com/app-builder/docs/resources/cron-jobs/ 

This happens only when i addd the triggers and rules to the yaml. 

triggers:
everyMin:
feed: /whisk.system/alarms/interval
inputs:
minutes: 1
rules:
everyMinRule:
trigger: everyMin
action: generic

The build works fine without it. 

 

What could be the cause? Here's a screenshot and aio info 

aio INFO 

Screen Shot 2022-03-22 at 7.42.02 pm.png

System:
OS: macOS 12.0.1
CPU: (10) x64 Apple M1 Pro
Memory: 20.02 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
Yarn: Not Found
npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
Virtualization:
Docker: 20.10.8 - /usr/local/bin/docker
npmGlobalPackages:
@adobe/aio-cli: Not Found

Proxies:
http: (not set)
https: (not set)
CLI plugins:
core:
@adobe/aio-cli 8.2.0
@adobe/aio-cli-plugin-app 8.3.0
@adobe/aio-cli-plugin-auth 2.5.0
@adobe/aio-cli-plugin-certificate 0.3.0
@adobe/aio-cli-plugin-config 2.3.0
@adobe/aio-cli-plugin-console 3.4.2
@adobe/aio-cli-plugin-events 1.1.5
@adobe/aio-cli-plugin-info 2.1.0
@adobe/aio-cli-plugin-runtime 5.1.0
@oclif/plugin-autocomplete 0.3.0
@oclif/plugin-help 2.2.3
@oclif/plugin-not-found 2.2.0
@oclif/plugin-plugins 1.10.1
@oclif/plugin-warn-if-update-available 1.7.0
user:
link:

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

I can see your issue. 

that yaml config file is space sensitive 

your package is sourceConnectorDS

It has Actions, Triggers, and Rules

all three are TOP level package items so they need to be at the same indentation level

sourceConnectorDS

   actions:...

   rules:...

   triggers:...

 

Above you have rules and triggers as sub-properties of actions so it thinks they are action definitions. 

Does that make sense for you?

View solution in original post

4 Replies

Avatar

Community Advisor

@dr_venture Would really appreciate your help here! Thank you

Avatar

Correct answer by
Employee

I can see your issue. 

that yaml config file is space sensitive 

your package is sourceConnectorDS

It has Actions, Triggers, and Rules

all three are TOP level package items so they need to be at the same indentation level

sourceConnectorDS

   actions:...

   rules:...

   triggers:...

 

Above you have rules and triggers as sub-properties of actions so it thinks they are action definitions. 

Does that make sense for you?

Avatar

Community Advisor

phew thank you! I had a feeling that is it. 

I blindly followed the codelab, which might have caused the issue. 

The indentation needs to be updated here --> https://developer.adobe.com/app-builder/docs/resources/cron-jobs/lesson2/