Skip to content
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

Bug - explainshell services has no /api path, so arg tips doesn't work #1107

Open
palansher opened this issue Feb 24, 2024 · 3 comments
Open

Comments

@palansher
Copy link

palansher commented Feb 24, 2024

Hello!

Thanks you for nice tool!

const url = `${endpoint}/api/explain?${searchParams}`

If replace

const url = `${endpoint}/api/explain?${searchParams}`

to

const url = `${endpoint}/explain?${searchParams}`

then will be working requests like this:
https://explainshell.com/api/explain?cmd=grep+-v+%22current%22

to https://explainshell.com or custom buit https://github.com/idank/explainshell

The reason of that: there is no /api path supported on known explainshell services.

Currently all requests to /api return 404 error

@skovhus
Copy link
Collaborator

skovhus commented Feb 25, 2024

Thanks, they must have changed their URL. Are you up for doing a PR?

There is some documentation and a security warning here:
https://github.com/bash-lsp/bash-language-server/tree/main/vscode-client#configuration

@palansher
Copy link
Author

Are you up for doing a PR

Hello! Maybe I can. If you kindly explain what is 'PR' , you mentioned :)

The Pull Request? I am a junior coder, But I will try.

@skovhus
Copy link
Collaborator

skovhus commented Feb 26, 2024

Yes, I meant a pull request. :)

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

No branches or pull requests

2 participants