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

Ngrok unable to delete tunnel sessions #29

Open
stikkireddy opened this issue Dec 14, 2023 · 2 comments
Open

Ngrok unable to delete tunnel sessions #29

stikkireddy opened this issue Dec 14, 2023 · 2 comments

Comments

@stikkireddy
Copy link

stikkireddy commented Dec 14, 2023

ngrok-api 0.10.0

if __name__ == "__main__":
    client = ngrok.Client("<token>")
    for ses in client.tunnel_sessions.list():
        client.tunnel_sessions.stop(ses.id)

ngrok.error.Error: (Error(...), 'You did not provide a Content-Type with your request. Please check your API client implementation and use one of the supported content types: https://ngrok.com/docs/api#content-types')

@salilsub
Copy link

@stikkireddy Is there a you are using the ngrok-api-python library instead of our python SDK? I'm curious if there's a capability you need that is in the former and not the latter.

@stikkireddy
Copy link
Author

Hmm it was a while ago for my reason posting this I believe I was trying to delete any of my tunnels or list my tunnels from the rest api. I think the sdk only does tcp forwarding unless I am mistaken.

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