-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdk_hook_not_found when following Quick-Start #65
Comments
Very similar to this reddit thread: https://www.reddit.com/r/Slack/comments/1btrarr/please_test_my_open_ai_slack_bot/ |
Hi, @Equirinya! I have just merged in some dependency updates in this PR for this template: #64, could you try to follow the quickstart guide again to create a new app and run it and see if you get the same errors? |
I have exactly same error with @Equirinya. |
Hi, @whogodemo! How recently did you create this new app? |
Unfortunately its the same error still @hello-ashleyintech |
👋 This might be caused by the PowerShell version being used with CLI implementations of hook execution, but not the actual hook implementations. The If you're using PowerShell could you check the version you're using? I'm wondering if this might be causing this issue and if bumping to a more recent version is possible? |
Alo alo 😃 I want to confirm that I solved the problem updating to
If you want to install the latest version of PS
|
This comment was marked as spam.
This comment was marked as spam.
@tult98 The contents of $ deno run -q --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/mod.ts I'd also be interested in the debug logs shown with a command like [2024-07-27 11:14:15] initialized SDK CLI config: {Runtime:deno Hooks:{BuildProject:{Command:deno run -q --config=deno.jsonc --allow-read --allow-write --allow-net --allow-run --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/b
uild.ts Name:BuildProject} CheckUpdate:{Command:deno run -q --config=deno.jsonc --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/check_update.ts Name:CheckUpdate} Deploy:{Command: Name:Deploy} Doctor:{Command:deno
run -q --config=deno.jsonc --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/doctor.ts Name:Doctor} GetHooks:{Command:deno run -q --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/mod.ts Name:Get
Hooks} GetManifest:{Command:deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/get_manifest.ts Name:GetManifest} GetTrigger:{Command:deno run -q --config=deno.jsonc --allo
w-read --allow-net --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/get_trigger.ts Name:GetTrigger} InstallUpdate:{Command:deno run -q --config=deno.jsonc --allow-run --allow-read --allow-write --allow-net https://deno.land/x/
deno_slack_hooks@1.3.0/install_update.ts Name:InstallUpdate} Start:{Command:deno run -q --config=deno.jsonc --allow-read --allow-net --allow-run --allow-env https://deno.land/x/deno_slack_runtime@1.1.1/local-run.ts Name:Start}} Con
fig:{Watch:{FilterRegex:\.(ts|js)$ Paths:[.]} SDKManagedConnection:false TriggerPaths:[] SupportedProtocols:[message-boundaries]} WorkingDirectory:} I'm hoping one of these point towards another issue or a fix, but please let me know if the responses seem unexpected! |
Thanks for the quick response @zimeg Here are the outputs from
And the outputs from
|
@tult98 Interesting 👀 This might be VPN or network settings blocking a connection to https://deno.land 🦕 Wanting to rule a few things out- are you connected through a VPN? And does the following command on the same machine work for you? $ deno run https://deno.land/x/cowsay@1.1/cowsay.ts -t="greetings" |
ah yes, I did use a VPN, it might be the problem. Let me turn off the VPN and try again. Thanks for your support 🙏
No, it doesn't
|
hey guys, I got the same problem now.... I'm pretty sure my PowerShell is the newest version(7.4.4). Here is the problem:
Here is my Slack doctor result:
And my slack.json code:
Did anyone solve this problem already? Thank you!! |
@as43647 👋 Hi! Which version of the CLI is this happening with? My first guess is that the |
Hi @zimeg !! My version is Details
[2024-08-16 18:07:01] Resolving logstash host, https://slack.com, 2.29.1
[2024-08-16 18:07:05] HTTP Request: POST https://slack.com/api/auth.test HTTP/1.1
[2024-08-16 18:07:06] FlushToLogstash will POST https://slackb.com/events/cli payload: [{"context":{"bin":"...\AppData\Local\slack-cli\bin\slack.exe","cli_version":"2.29.1","command":"run","command_canonical":"platform run","flags":["verbose"],"host":"978c8bba38c9a4f024a5cb28d420fb807d34b89f","os":"windows","project_id":"30812829-09b0-4be6-abf2-2e08bf9a2050","runtime":"Deno","runtime_version":"v1.45.5","session_id":"062d2a88-e0b7-4269-8086-3e7a208fdf21","system_id":"fb7a886f-a7d2-404f-850a-972acdd6013d"},"data":{"app":{},"auth":{"user_id":"U07FR4T1KRS"},"error_code":"sdk_hook_not_found","error_msg":"The FYI I'm using Windows. Thank you!! |
@as43647 🤔 Hmm... For pedantics does the {
"runtime": "deno",
"hooks": {
"get-manifest": "deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env https://deno.land/x/deno_slack_hooks@1.3.1/get_manifest.ts",
"get-trigger": "deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env https://deno.land/x/deno_slack_hooks@1.3.1/get_trigger.ts",
"build": "deno run -q --config=deno.jsonc --allow-read --allow-write --allow-net --allow-run --allow-env https://deno.land/x/deno_slack_hooks@1.3.1/build.ts",
"start": "deno run -q --config=deno.jsonc --allow-read --allow-net --allow-run --allow-env https://deno.land/x/deno_slack_runtime@1.1.2/local-run.ts ",
"check-update": "deno run -q --config=deno.jsonc --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.1/check_update.ts",
"install-update": "deno run -q --config=deno.jsonc --allow-run --allow-read --allow-write --allow-net https://deno.land/x/deno_slack_hooks@1.3.1/install_update.ts",
"doctor": "deno run -q --config=deno.jsonc --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.1/doctor.ts"
},
"config": {
"protocol-version": [
"message-boundaries"
],
"watch": {
"filter-regex": "\\.(ts|js)$",
"paths": [
"."
]
}
}
} Asking because this line is a bit suspicious with the invalid [2024-08-16 18:07:02] failed to initialize slack.json configurations: invalid character '.' looking for beginning of value This might also be caused by the environment you're running If the output above matches and these commands are run with the same path and shell, I'll be a bit stumped but we'll of course continue investigations! 🔍 |
Hey @zimeg ~ My Deno version is: There are some different between two json file Thank u!! |
@as43647 👀 All of those versions seem alright to me! It is notable that Windows is being used, but I don't believe that should be causing a problem... Can you share the outputs from these commands when running in a project directory? $ deno run -q --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/mod.ts
$ deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/get_manifest.ts
$ slack manifest I'm hoping to figure out if this is caused by |
Hi @zimeg Details
{"runtime":"deno","hooks":{"get-manifest":"deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/get_manifest.ts","get-trigger":"deno run -q --config=deno.jsonc --allow-read --allow-net --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/get_trigger.ts","build":"deno run -q --config=deno.jsonc --allow-read --allow-write --allow-net --allow-run --allow-env https://deno.land/x/deno_slack_hooks@1.3.0/build.ts","start":"deno run -q --config=deno.jsonc --allow-read --allow-net --allow-run --allow-env https://deno.land/x/deno_slack_runtime@1.1.1/local-run.ts ","check-update":"deno run -q --config=deno.jsonc --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/check_update.ts","install-update":"deno run -q --config=deno.jsonc --allow-run --allow-read --allow-write --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/install_update.ts","doctor":"deno run -q --config=deno.jsonc --allow-read --allow-net https://deno.land/x/deno_slack_hooks@1.3.0/doctor.ts"},"config":{"protocol-version":["message-boundaries"],"watch":{"filter-regex":"\\.(ts|js)$","paths":["."]}}}
Details
https://deno.land/x/deno_slack_hooks@1.3.0/get_manifest.ts`
Details
Check C:\Users\as436.slack\logs\slack-debug-20240822.log for error logs
Thank you! |
I've followed the Quick-Start https://api.slack.com/automation/quickstart and but no matter which template I'm cloning i always get this error: The
start
script was not found (sdk_hook_not_found).:This is the slack doctor:
The slack.json file is present and looks like this:
Im executing the slack run command in the right folder
I've upgraded the slack cli to the latest version
the slack.json file is identical to the one of this slack-sample
These are the logs:
The text was updated successfully, but these errors were encountered: