dcmeglio / hubitat-packagemanagertools

BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

App could not be parsed to determine the name and namespace #5

Open decay29 opened 3 years ago

decay29 commented 3 years ago

I am trying to add an app from the command line in WSL using a local webserver.

My command is:

./hpm manifest-add-app pm.json lightrule.groovy --location=http://localhost:8100/lightrule.groovy --required=true --oauth=false

to which I get:

[26/Jul/2021 15:39:28] "GET /lightrule.groovy HTTP/1.1" 200 - An error occurred: The app Groovy file http://localhost:8100/lightrule.groovy could not be parsed to determine the name and namespace. Please report this as a bug.

This app installs fine using the standard web interface using the import button and the above url

dcmeglio commented 3 years ago

I’d need access to the file generating the error.

On Jul 26, 2021, at 1:06 PM, decay29 @.***> wrote:

 I am trying to add an app from the command line in WSL using a local webserver.

My command is:

./hpm manifest-add-app pm.json lightrule.groovy --location=http://localhost:8100/lightrule.groovy --required=true --oauth=false

to which I get:

[26/Jul/2021 15:39:28] "GET /lightrule.groovy HTTP/1.1" 200 - An error occurred: The app Groovy file http://localhost:8100/lightrule.groovy could not be parsed to determine the name and namespace. Please report this as a bug.

This app installs fine using the standard web interface using the import button and the above url

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

decay29 commented 3 years ago

I’d need access to the file generating the error.

Thanks.

Attached. It is a very simple app for testing purposes. Added .txt to extension to please github.

lightrule.groovy.txt