Skip to content

Conversation

@Rusteam
Copy link

@Rusteam Rusteam commented Jun 12, 2023

This what happens in my cli:

$ doctl sls fn invoke joke                   
Error: Resource by this name exists but is not in this collection. (code XXX)

$ doctl sls fn invoke joke/joke                                                                                                                                           
{
  "body": {
    "response_type": "in_channel",
    "text": "Why are you always smiling? That's just my... regular expression."
  }
}

@rabbah
Copy link
Contributor

rabbah commented Jun 12, 2023

joke is the name of the package
and the function’s name is joke/joke (the qualified name of a function must include the package name where there is an enclosing package).

the error means that you are trying to invoke something that is not a function (here a package called joke).

@Rusteam
Copy link
Author

Rusteam commented Jun 13, 2023

I just followed an example from the readme. That fixed it for me. If it's only applicable to my case then we can close this PR.

@rabbah
Copy link
Contributor

rabbah commented Jun 13, 2023

ack - the readme should be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants